public class Decimal extends SimpleType
<complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <choice maxOccurs="unbounded" minOccurs="0"> <choice> <group ref="{http://www.fixprotocol.org/ns/fast/td/1.1}fieldOp"/> <choice> <element ref="{http://www.fixprotocol.org/ns/fast/td/1.1}exponent"/> <element ref="{http://www.fixprotocol.org/ns/fast/td/1.1}mantissa"/> </choice> </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> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected List<Type> |
mantissaOrExponent |
protected String |
ns |
constantOrDefaultOrCopy
defaultValue, initialValue
operator, presence, requiresPMapFlag, types
Constructor and Description |
---|
Decimal() |
Modifier and Type | Method and Description |
---|---|
void |
assignOperator() |
ITypeValue |
createValue(String stringValue) |
ITypeValue |
createValue(String id,
String value) |
ITypeValue |
decodeDelta(Context context,
BinaryMessage message)
Decodes value from stream with delta operator.
|
protected ITypeValue |
decodeInternal(BinaryMessage message) |
ITypeValue |
decodeNone(Context context,
BinaryMessage message)
Decodes value from stream with none operator.
|
byte[] |
encodeDelta(ITypeValue value,
Context context,
EncodePresenceMapBuilder presenceMapBuilder)
Encodes value with delta operator.
|
protected byte[] |
encodeInternal(ITypeValue encodingValue) |
byte[] |
encodeNone(ITypeValue value,
Context context,
EncodePresenceMapBuilder presenceMapBuilder)
Encodes value with none operator.
|
ITypeValue |
getDefaultValue()
Gets default value for type.
|
ITypeValue |
getInitialValue()
Gets the initial value for type.
|
List<Type> |
getMantissaOrExponent()
Gets the value of the constantOrDefaultOrCopy property.
|
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.
|
protected ITypeValue |
getTypeValue(String value) |
boolean |
requiresPMapForSequence() |
void |
setNs(String value)
Sets the value of the ns property.
|
void |
setOptional(boolean optional)
Sets the optional value.
|
compareTo, getConstantOrDefaultOrCopy, setConstantOrDefaultOrCopy
decodeConstant, decodeCopy, decodeDefault, encodeConstant, encodeCopy, encodeDefault
decodeIncrement, decodeTail, encodeIncrement, encodeTail
decode, encode, getCoderType, getDictionary, getIndex, getNullValue, setDictionary, setIndex
getId, getIdInteger, getName, getOperator, getPresence, getTypes, isOptional, requiresPMap, setId, setName, setOperator, setPresence, setTypes, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
requiresPMap
getId, getIdInteger, getName, isOptional
public void assignOperator()
assignOperator
in interface Type
assignOperator
in class SimpleType
public void setOptional(boolean optional)
ModelType
setOptional
in interface ModelType
setOptional
in class AbstractModelType
optional
- the optionalpublic List<Type> getMantissaOrExponent()
setBitAtIndex
method for the constantOrDefaultOrCopy property.
For example, to add a new item, do as follows:
getConstantOrDefaultOrCopy().add(newItem);
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 ITypeValue createValue(String stringValue)
createValue
in interface Type
createValue
in class TypeAdaptor
public Map<QName,String> getOtherAttributes()
protected ITypeValue getTypeValue(String value)
getTypeValue
in class GenericType
public ITypeValue getDefaultValue()
ModelType
getDefaultValue
in interface ModelType
getDefaultValue
in class AbstractType
public ITypeValue getInitialValue()
ModelType
getInitialValue
in interface ModelType
getInitialValue
in class TypeAdaptor
public byte[] encodeDelta(ITypeValue value, Context context, EncodePresenceMapBuilder presenceMapBuilder)
TypeEncoder
encodeDelta
in interface TypeEncoder
encodeDelta
in class TypeAdaptor
value
- the valuecontext
- the contextpresenceMapBuilder
- the PM Mappublic ITypeValue decodeDelta(Context context, BinaryMessage message)
TypeDecoder
decodeDelta
in interface TypeDecoder
decodeDelta
in class TypeAdaptor
context
- the contextmessage
- the stream messagepublic byte[] encodeNone(ITypeValue value, Context context, EncodePresenceMapBuilder presenceMapBuilder)
TypeEncoder
encodeNone
in interface TypeEncoder
encodeNone
in class GenericType
value
- the valuecontext
- the contextpresenceMapBuilder
- the PM Mappublic ITypeValue decodeNone(Context context, BinaryMessage message)
TypeDecoder
decodeNone
in interface TypeDecoder
decodeNone
in class GenericType
context
- the contextmessage
- the stream messageprotected ITypeValue decodeInternal(BinaryMessage message)
decodeInternal
in class TypeAdaptor
protected byte[] encodeInternal(ITypeValue encodingValue)
encodeInternal
in class TypeAdaptor
public boolean requiresPMapForSequence()
Copyright © 2000-2017 EPAM Systems. All Rights Reserved.