public class Template extends TypeAdaptor implements TypeSequence, FixDecoder
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <choice maxOccurs="unbounded" minOccurs="0"> <choice> <element ref="{http://www.fixprotocol.org/ns/fast/td/1.1}typeRef"/> <group ref="{http://www.fixprotocol.org/ns/fast/td/1.1}instruction"/> </choice> <group ref="{http://www.fixprotocol.org/ns/fast/td/1.1}other"/> </choice> <attGroup ref="{http://www.fixprotocol.org/ns/fast/td/1.1}templateNsName"/> <attGroup ref="{http://www.fixprotocol.org/ns/fast/td/1.1}other"/> <attribute name="ns" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" /> <attribute name="dictionary"> <simpleType> <union memberTypes=" {http://www.w3.org/2001/XMLSchema}string"> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}token"> <enumeration value="template"/> <enumeration value="type"/> <enumeration value="global"/> </restriction> </simpleType> </union> </simpleType> </attribute> </restriction> </complexContent> </complexType>
Modifier and Type | Class and Description |
---|---|
static class |
Template.String
Java class for anonymous complex type.
|
Modifier and Type | Field and Description |
---|---|
protected String |
dictionary |
static String |
INNER_TEMPLATE_ID_VALUE |
protected String |
ns |
protected String |
templateNs |
defaultValue, initialValue
operator, presence, requiresPMapFlag, types
Constructor and Description |
---|
Template() |
Modifier and Type | Method and Description |
---|---|
void |
addType(Type type)
Adds the type to sequence
|
void |
assignOperator() |
FastMessage |
decode(BinaryMessage message,
Context context) |
FIXFieldList |
decodeToFIX(BinaryMessage message,
Context context)
Decodes
message to FIX. |
byte[] |
encode(FastMessage fastMessage,
Context context) |
protected byte[][] |
encodingFieldList(Context context,
IntegerField templateIdType,
String templateId,
int startIndex,
TypeValueSequenceImpl typeValueSequence,
int fieldsCount,
EncodePresenceMapBuilder presenceMapBuilder) |
String |
getDictionary()
Gets the value of the dictionary property.
|
int |
getFieldCount()
Gets total field count.
|
int |
getLength()
Gets types length
|
String |
getNs()
Gets the value of the ns property.
|
Map<QName,String> |
getOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed property on this class.
|
String |
getTemplateNs()
Gets the value of the templateNs property.
|
Type |
getType(int i)
Gets type by index
|
boolean |
requiresPMap() |
void |
setDictionary(String value)
Sets the value of the dictionary property.
|
void |
setFieldCount(int fieldCount) |
void |
setNs(String value)
Sets the value of the ns property.
|
void |
setTemplateNs(String value)
Sets the value of the templateNs property.
|
String |
toString() |
createValue, createValue, decodeConstant, decodeCopy, decodeDefault, decodeDelta, decodeIncrement, decodeInternal, decodeNone, decodeTail, encodeConstant, encodeCopy, encodeDefault, encodeDelta, encodeIncrement, encodeInternal, encodeNone, encodeTail, getInitialValue
encode, getCoderType, getDefaultValue, getIndex, getNullValue, setIndex
compareTo, getId, getIdInteger, getName, getOperator, getPresence, getTypes, isOptional, setId, setName, setOperator, setOptional, setPresence, setTypes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compareTo
getId, getIdInteger, getName, isOptional, setOptional
public static final String INNER_TEMPLATE_ID_VALUE
protected String ns
protected String dictionary
protected String templateNs
public void assignOperator()
assignOperator
in interface Type
assignOperator
in class AbstractType
public boolean requiresPMap()
requiresPMap
in interface Type
requiresPMap
in class AbstractModelType
public void setNs(String value)
value
- allowed object is
String
public String getDictionary()
getDictionary
in interface Type
getDictionary
in class AbstractType
String
public void setDictionary(String value)
setDictionary
in interface Type
setDictionary
in class AbstractType
value
- allowed object is
String
public String getTemplateNs()
String
public void setTemplateNs(String value)
value
- allowed object is
String
public Map<QName,String> getOtherAttributes()
public byte[] encode(FastMessage fastMessage, Context context)
public FastMessage decode(BinaryMessage message, Context context)
decode
in interface Type
decode
in class AbstractType
public FIXFieldList decodeToFIX(BinaryMessage message, Context context)
message
to FIX.decodeToFIX
in interface FixDecoder
message
- the fast messagecontext
- the contextpublic int getFieldCount()
public String toString()
toString
in class AbstractModelType
public void addType(Type type)
TypeSequence
addType
in interface TypeSequence
type
- the typepublic Type getType(int i)
TypeSequence
getType
in interface TypeSequence
public int getLength()
TypeSequence
getLength
in interface TypeSequence
public void setFieldCount(int fieldCount)
protected byte[][] encodingFieldList(Context context, IntegerField templateIdType, String templateId, int startIndex, TypeValueSequenceImpl typeValueSequence, int fieldsCount, EncodePresenceMapBuilder presenceMapBuilder)
Copyright © 2000-2017 EPAM Systems. All Rights Reserved.