public class MessageTemplate extends Group implements FieldSet
childNamespace, fieldDefinitions, fieldIdMap, fieldIndexMap, fieldNameMap, fields, introspectiveFieldMap, staticTemplateReferences, usesPresenceMap
attributes, name
Constructor and Description |
---|
MessageTemplate(QName name,
Field[] fields) |
MessageTemplate(String name,
Field[] fields) |
Modifier and Type | Method and Description |
---|---|
FieldValue |
createValue(String value)
createValue method declaration
|
Message |
decode(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(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
|
Class |
getValueType()
getValueType method declaration
|
int |
hashCode() |
String |
toString() |
boolean |
usesPresenceMap() |
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
getId, getKey, getName, getQName, getTemplate, isOptional, isPresent, setId, setKey, setMessageTemplate
addNode, getAttribute, getAttributes, getChildren, getNodeName, getNodes, hasAttribute, hasChild, setAttribute
public boolean usesPresenceMap()
usesPresenceMap
in class Group
public Field getField(int index)
Group
public int getFieldCount()
Group
getFieldCount
in interface FieldSet
getFieldCount
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 syncpublic Message decode(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 syncpublic Class getValueType()
Field
getValueType
in class Group
public FieldValue createValue(String value)
Field
createValue
in class Group
value
- The value that the fieldValue that is to be createdpublic Field[] getFields()
public Field[] getTemplateFields()
Copyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.