|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openfast.template.Field
org.openfast.template.Group
org.openfast.template.MessageTemplate
public class MessageTemplate
| Field Summary |
|---|
| Fields inherited from class org.openfast.template.Group |
|---|
childNamespace, fieldDefinitions, fieldIdMap, fieldIndexMap, fieldNameMap, fields, introspectiveFieldMap, staticTemplateReferences, usesPresenceMap |
| Fields inherited from class org.openfast.template.Field |
|---|
id, key, name, optional |
| Constructor Summary | |
|---|---|
MessageTemplate(QName name,
Field[] fields)
|
|
MessageTemplate(java.lang.String name,
Field[] fields)
|
|
| Method Summary | |
|---|---|
FieldValue |
createValue(java.lang.String value)
createValue method declaration |
Message |
decode(java.io.InputStream in,
int templateId,
BitVectorReader presenceMapReader,
Context context)
Decodes the inputStream and creates a new message that contains this information |
byte[] |
encode(Message message,
Context context)
Uses the superclasses encode method to encode the byte array - see Group.java |
boolean |
equals(java.lang.Object obj)
|
Field |
getField(int index)
Find the field object of the index passed |
int |
getFieldCount()
Find the number of total fields |
Field[] |
getFields()
|
Field[] |
getTemplateFields()
Returns a field array of the current stored fields |
java.lang.Class |
getValueType()
getValueType method declaration |
int |
hashCode()
|
java.lang.String |
toString()
|
boolean |
usesPresenceMap()
|
| Methods inherited from class org.openfast.template.Group |
|---|
decode, decodeFieldValues, decodeFieldValues, encode, encode, getChildNamespace, getField, getField, getFieldById, getFieldDefinitions, getFieldIndex, getFieldIndex, getGroup, getIntrospectiveField, getScalar, getScalar, getSequence, getStaticTemplateReference, getStaticTemplateReference, getStaticTemplateReferences, getTypeName, getTypeReference, hasField, hasField, hasFieldWithId, hasIntrospectiveField, hasTypeReference, isPresenceMapBitSet, setChildNamespace, setTypeReference, usesPresenceMapBit |
| 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, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MessageTemplate(QName name,
Field[] fields)
public MessageTemplate(java.lang.String name,
Field[] fields)
| Method Detail |
|---|
public boolean usesPresenceMap()
usesPresenceMap in class Grouppublic Field getField(int index)
Group
getField in interface FieldSetgetField in class Groupindex - The index to find the field
public int getFieldCount()
Group
getFieldCount in interface FieldSetgetFieldCount in class Group
public byte[] encode(Message message,
Context context)
message - The GroupValue object to be encodedcontext - The previous object to keep the data in sync
public Message decode(java.io.InputStream in,
int templateId,
BitVectorReader presenceMapReader,
Context context)
in - The inputStream to be decodedtemplateId - The templateID of the messagepresenceMapReader - The BitVector map of the Messagecontext - The previous object to keep the data in sync
public java.lang.Class getValueType()
Field
getValueType in class Grouppublic java.lang.String toString()
toString in class Grouppublic FieldValue createValue(java.lang.String value)
Field
createValue in class Groupvalue - The value that the fieldValue that is to be created
public Field[] getFields()
getFields in class Grouppublic Field[] getTemplateFields()
public boolean equals(java.lang.Object obj)
equals in class Grouppublic int hashCode()
hashCode in class Group
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||