org.openfast.template
Class StaticTemplateReference

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

public class StaticTemplateReference
extends Field

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openfast.template.Field
id, key, name, optional
 
Constructor Summary
StaticTemplateReference(MessageTemplate template)
           
 
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)
           
 MessageTemplate getTemplate()
           
 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
 

Constructor Detail

StaticTemplateReference

public StaticTemplateReference(MessageTemplate template)
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

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 - The inputStream to be decoded
template - The Group object to be decoded
context - The previous object to keep the data in sync

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 - The FieldValue object to be encoded
template - The Group object to be encoded
context - The previous object to keep the data in sync
presenceMapBuilder - The BitVectorBuilder object to be encoded

getTypeName

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

Specified by:
getTypeName in class Field

getValueType

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

Specified by:
getValueType in class Field

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

usesPresenceMapBit

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

Specified by:
usesPresenceMapBit in class Field

getTemplate

public MessageTemplate getTemplate()

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.