org.openfast.template
Class DynamicTemplateReference

java.lang.Object
  extended by org.openfast.template.Field
      extended by org.openfast.template.DynamicTemplateReference
All Implemented Interfaces:
java.io.Serializable

public class DynamicTemplateReference
extends Field

See Also:
Serialized Form

Field Summary
static DynamicTemplateReference INSTANCE
           
 
Fields inherited from class org.openfast.template.Field
id, key, name, optional
 
Method Summary
 FieldValue createValue(java.lang.String value)
          createValue method declaration
 FieldValue decode(java.io.InputStream in, Group template, Context context, BitVectorReader pmapReader)
          FieldValue decode method declaration
 byte[] encode(FieldValue value, Group template, Context context, BitVectorBuilder presenceMapBuilder)
          byte[] encode method declaration
 boolean equals(java.lang.Object obj)
           
 java.lang.String getTypeName()
          getTypeName method declaration
 java.lang.Class getValueType()
          getValueType method declaration
 boolean isPresenceMapBitSet(byte[] encoding, FieldValue fieldValue)
          isPresenceMapBitSet method declaration
 boolean usesPresenceMapBit()
          usesPresenceMapBit method declaration
 
Methods inherited from class org.openfast.template.Field
addAttribute, getAttribute, getId, getKey, getName, getQName, hasAttribute, isOptional, isPresent, setId, setKey
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DynamicTemplateReference INSTANCE
Method Detail

createValue

public FieldValue createValue(java.lang.String value)
Description copied from class: Field
createValue method declaration

Specified by:
createValue in class Field
Parameters:
value - The string of the FieldValue that is to be created
Returns:
Returns null

decode

public FieldValue decode(java.io.InputStream in,
                         Group template,
                         Context context,
                         BitVectorReader pmapReader)
Description copied from class: Field
FieldValue decode method declaration

Specified by:
decode in class Field
Parameters:
in -
template -
context -
present -
Returns:
the next message in the decoder

encode

public byte[] encode(FieldValue value,
                     Group template,
                     Context context,
                     BitVectorBuilder presenceMapBuilder)
Description copied from class: Field
byte[] encode method declaration

Specified by:
encode in class Field
Parameters:
value -
template -
context -
presenceMapBuilder -
Returns:
the encoding of the message given its template

getTypeName

public java.lang.String getTypeName()
Description copied from class: Field
getTypeName method declaration

Specified by:
getTypeName in class Field
Returns:
Returns null

getValueType

public java.lang.Class getValueType()
Description copied from class: Field
getValueType method declaration

Specified by:
getValueType in class Field
Returns:
Returns null

isPresenceMapBitSet

public boolean isPresenceMapBitSet(byte[] encoding,
                                   FieldValue fieldValue)
Description copied from class: Field
isPresenceMapBitSet method declaration

Specified by:
isPresenceMapBitSet in class Field
Parameters:
encoding - The byte array to check if it is present
fieldValue - The fieldValue object
Returns:
Returns false

usesPresenceMapBit

public boolean usesPresenceMapBit()
Description copied from class: Field
usesPresenceMapBit method declaration

Specified by:
usesPresenceMapBit in class Field
Returns:
Returns false

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2006-2008 The LaSalle Technology Group, LLC. All Rights Reserved.