public abstract class OpContext extends Object
Java class for opContext complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="opContext"> <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"/> <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> <attribute name="key" type="{http://www.w3.org/2001/XMLSchema}token" /> <attribute name="ns" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" /> <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" /> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected String |
dictionary |
protected List<Element> |
foreignElm |
protected String |
key |
protected String |
ns |
String |
value |
Constructor and Description |
---|
OpContext() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
ITypeValue |
decodeValue(Context context,
Type type,
ITypeValue decodeValue)
Decode value.
|
ITypeValue |
encodeValue(Context context,
Type type,
ITypeValue encodeValue) |
ITypeValue |
getDefaultValue(Context context,
Type type)
Get default value for type.
|
String |
getDictionary()
Gets the value of the dictionary property.
|
List<Element> |
getForeignElm()
Gets the value of the foreignElm property.
|
String |
getId() |
String |
getKey()
Gets the value of the key property.
|
String |
getName() |
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.
|
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 |
setDictionary(String value)
Sets the value of the dictionary property.
|
void |
setKey(String value)
Sets the value of the key property.
|
void |
setNs(String value)
Sets the value of the ns property.
|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
decode, encode, getOperatorType
protected String dictionary
protected String key
protected String ns
public String value
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 getDictionary()
String
public void setDictionary(String value)
value
- allowed object is
String
public void setKey(String value)
value
- allowed object is
String
public void setNs(String value)
value
- allowed object is
String
public String getValue()
public void setValue(String value)
value
- allowed object is
String
public Map<QName,String> getOtherAttributes()
public String getName()
public String getId()
public boolean shouldSetValue(ITypeValue value)
Operator
value
- the valuepublic int compareTo(Object o)
public boolean requiredDecode()
public boolean shouldStoreDecodedValue(ITypeValue value)
Operator
shouldStoreDecodedValue
in interface Operator
value
- the valuepublic boolean requiresPMap()
public ITypeValue getPresenceEncodingValue(Type type, ITypeValue fieldValue, Context context, EncodePresenceMapBuilder presenceMapBuilder)
public ITypeValue encodeValue(Context context, Type type, ITypeValue encodeValue)
context
- the contexttype
- the typeencodeValue
- public ITypeValue decodeValue(Context context, Type type, ITypeValue decodeValue)
context
- the contexttype
- the typedecodeValue
- public ITypeValue getDefaultValue(Context context, Type type)
context
- type
- the typeCopyright © 2000-2017 EPAM Systems. All Rights Reserved.