public class Sequence extends TypeAdaptor
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}length"/> <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}other"/> <attGroup ref="{http://www.fixprotocol.org/ns/fast/td/1.1}nsName"/> <attribute name="presence"> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}token"> <enumeration value="mandatory"/> <enumeration value="optional"/> </restriction> </simpleType> </attribute> <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 |
Sequence.Length
Java class for anonymous complex type.
|
Modifier and Type | Field and Description |
---|---|
protected String |
dictionary |
protected String |
ns |
defaultValue, initialValue
operator, presence, types
Constructor and Description |
---|
Sequence() |
Modifier and Type | Method and Description |
---|---|
void |
addType(Type type)
Adds the type to sequence
|
void |
assignOperator() |
ITypeValue |
createValue(String id,
String value) |
ITypeValue |
decode(BinaryMessage message,
Context context) |
byte[] |
encode(ITypeValue typeValue,
Context context,
EncodePresenceMapBuilder presenceMapBuilder) |
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 |
getLength()
Gets types length
|
Type |
getLengthFromTypesList() |
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.
|
Type |
getType(int i)
Gets type by index
|
protected ITypeValue |
getTypeValue(TypeValueSequenceList value) |
boolean |
requiresPMap() |
void |
setDictionary(String value)
Sets the value of the dictionary property.
|
void |
setNs(String value)
Sets the value of the ns property.
|
createValue, decodeConstant, decodeCopy, decodeDefault, decodeDelta, decodeIncrement, decodeInternal, decodeNone, decodeTail, encodeConstant, encodeCopy, encodeDefault, encodeDelta, encodeIncrement, encodeInternal, encodeNone, encodeTail, getInitialValue
getCoderType, getDefaultValue, getIndex, getNullValue, setIndex
compareTo, getId, getIdInteger, getName, getOperator, getPresence, getTypes, isOptional, setId, setName, setOperator, setOptional, setPresence, setTypes, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compareTo
getId, getIdInteger, getName, isOptional, setOptional
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 void setNs(String value)
value
- allowed object is
String
public ITypeValue createValue(String id, String value)
createValue
in interface Type
createValue
in class TypeAdaptor
public void assignOperator()
assignOperator
in interface Type
assignOperator
in class AbstractType
public boolean requiresPMap()
requiresPMap
in interface Type
requiresPMap
in class AbstractModelType
public Map<QName,String> getOtherAttributes()
public void addType(Type type)
TypeSequence
type
- the typepublic Type getType(int i)
TypeSequence
public int getLength()
TypeSequence
public byte[] encode(ITypeValue typeValue, Context context, EncodePresenceMapBuilder presenceMapBuilder)
encode
in interface Type
encode
in class AbstractType
public Type getLengthFromTypesList()
public ITypeValue decode(BinaryMessage message, Context context)
decode
in interface Type
decode
in class AbstractType
protected ITypeValue getTypeValue(TypeValueSequenceList value)
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.