public class MessageTemplate extends Group implements FieldSet
childNamespace, fieldDefinitions, fieldIdMap, fieldIndexMap, fieldNameMap, fields, introspectiveFieldMap, staticTemplateReferences, usesPresenceMapattributes, 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, usesPresenceMapBitgetId, getKey, getName, getQName, getTemplate, isOptional, isPresent, setId, setKey, setMessageTemplateaddNode, getAttribute, getAttributes, getChildren, getNodeName, getNodes, hasAttribute, hasChild, setAttributepublic boolean usesPresenceMap()
usesPresenceMap in class Grouppublic Field getField(int index)
Grouppublic int getFieldCount()
GroupgetFieldCount in interface FieldSetgetFieldCount in class Grouppublic 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()
FieldgetValueType in class Grouppublic FieldValue createValue(String value)
FieldcreateValue in class Groupvalue - 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.