public class Constant extends Object
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"> <group ref="{http://www.fixprotocol.org/ns/fast/td/1.1}other"/> <attGroup ref="{http://www.fixprotocol.org/ns/fast/td/1.1}other"/> <attGroup ref="{http://www.fixprotocol.org/ns/fast/td/1.1}initialValueAttr"/> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected List<Element> |
foreignElm |
String |
value |
Constructor and Description |
---|
Constant() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
ITypeValue |
decode(AbstractType abstractType,
Context context,
BinaryMessage message)
Decode binary message to type value.
|
ITypeValue |
decodeValue(Context context,
Type type,
ITypeValue decodeValue)
Decode value.
|
byte[] |
encode(AbstractType abstractType,
Context context,
ITypeValue fieldValue,
EncodePresenceMapBuilder presenceMapBuilder)
Encode type value to bytes.
|
ITypeValue |
encodeValue(Context context,
Type type,
ITypeValue encodeValue) |
ITypeValue |
getDefaultValue(Context context,
Type type)
Get default value for type.
|
List<Element> |
getForeignElm()
Gets the value of the foreignElm property.
|
String |
getId() |
String |
getName() |
OperatorType |
getOperatorType() |
Map<QName,String> |
getOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed property on this class.
|
ITypeValue |
getPresenceEncodingValue(Type type,
ITypeValue fieldValue,
Context context,
EncodePresenceMapBuilder presenceMapBuilder) |
String |
getValue()
Gets the value of the value property.
|
boolean |
requiredDecode()
Returns true if decoding enable.
|
boolean |
requiresPMap()
Returns true if P Map is required.
|
void |
setValue(String value)
Sets the value of the value property.
|
boolean |
shouldSetValue(ITypeValue value)
Returns true if value should be stored to context.
|
boolean |
shouldStoreDecodedValue(ITypeValue value)
Returns true if decoded value should stored to context.
|
String |
toString() |
public List<Element> getForeignElm()
setBitAtIndex
method for the foreignElm property.
For example, to add a new item, do as follows:
getForeignElm().add(newItem);Objects of the following type(s) are allowed in the list
Element
public String getValue()
public OperatorType getOperatorType()
public byte[] encode(AbstractType abstractType, Context context, ITypeValue fieldValue, EncodePresenceMapBuilder presenceMapBuilder)
Operator
abstractType
- the type of operationcontext
- the contextfieldValue
- the field valuepresenceMapBuilder
- the presence mappublic ITypeValue decode(AbstractType abstractType, Context context, BinaryMessage message)
Operator
abstractType
- the type of operationcontext
- the contextmessage
- the binary messagepublic ITypeValue encodeValue(Context context, Type type, ITypeValue encodeValue)
context
- the contexttype
- the typepublic ITypeValue decodeValue(Context context, Type type, ITypeValue decodeValue)
context
- the contexttype
- the typepublic ITypeValue getDefaultValue(Context context, Type type)
type
- the typepublic boolean requiresPMap()
public boolean requiredDecode()
public void setValue(String value)
value
- allowed object is
String
public boolean shouldSetValue(ITypeValue value)
Operator
shouldSetValue
in interface Operator
value
- the valuepublic Map<QName,String> getOtherAttributes()
public String getName()
public String getId()
public ITypeValue getPresenceEncodingValue(Type type, ITypeValue fieldValue, Context context, EncodePresenceMapBuilder presenceMapBuilder)
public int compareTo(Object o)
public boolean shouldStoreDecodedValue(ITypeValue value)
Operator
shouldStoreDecodedValue
in interface Operator
value
- the valueCopyright © 2000-2017 EPAM Systems. All Rights Reserved.