public class TemplateRef extends GenericType
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"/> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}token" /> <attribute name="templateNs" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" /> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected List<Element> |
foreignElm |
protected String |
name |
protected String |
templateNs |
defaultValue, initialValue
operator, presence, requiresPMapFlag, types
Constructor and Description |
---|
TemplateRef() |
Modifier and Type | Method and Description |
---|---|
ITypeValue |
createValue(String id,
String value) |
ITypeValue |
decode(BinaryMessage message,
Context context) |
byte[] |
encode(ITypeValue fieldValue,
Context context,
EncodePresenceMapBuilder presenceMapBuilder) |
byte[] |
encodeDefault(ITypeValue value,
Context context,
EncodePresenceMapBuilder presenceMapBuilder)
Encodes value with default operator.
|
protected byte[] |
encodeTypeValue(String value) |
List<Element> |
getForeignElm()
Gets the value of the foreignElm property.
|
String |
getId()
Gets id of type.
|
String |
getName()
Gets the value of the name property.
|
Map<QName,String> |
getOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed property on this class.
|
Template |
getTemplate() |
String |
getTemplateNs()
Gets the value of the templateNs property.
|
protected ITypeValue |
getTypeValue(String value) |
boolean |
requiresPMap() |
void |
setName(String value)
Sets the value of the name property.
|
void |
setTemplate(Template template) |
void |
setTemplateNs(String value)
Sets the value of the templateNs property.
|
decodeConstant, decodeCopy, decodeDefault, decodeNone, encodeConstant, encodeCopy, encodeNone
createValue, decodeDelta, decodeIncrement, decodeInternal, decodeTail, encodeDelta, encodeIncrement, encodeInternal, encodeTail, getInitialValue
assignOperator, getCoderType, getDefaultValue, getDictionary, getIndex, getNullValue, setDictionary, setIndex
compareTo, getIdInteger, getOperator, getPresence, getTypes, isOptional, setId, setOperator, setOptional, setPresence, setTypes, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIdInteger, isOptional, setOptional
compareTo
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 byte[] encode(ITypeValue fieldValue, Context context, EncodePresenceMapBuilder presenceMapBuilder)
encode
in interface Type
encode
in class AbstractType
public ITypeValue decode(BinaryMessage message, Context context)
decode
in interface Type
decode
in class AbstractType
public ITypeValue createValue(String id, String value)
createValue
in interface Type
createValue
in class TypeAdaptor
public boolean requiresPMap()
requiresPMap
in interface Type
requiresPMap
in class AbstractModelType
public String getName()
getName
in interface ModelType
getName
in class AbstractModelType
String
public String getId()
ModelType
getId
in interface ModelType
getId
in class AbstractModelType
public void setName(String value)
setName
in class AbstractModelType
value
- allowed object is
String
public String getTemplateNs()
String
public void setTemplateNs(String value)
value
- allowed object is
String
public Map<QName,String> getOtherAttributes()
protected ITypeValue getTypeValue(String value)
getTypeValue
in class GenericType
protected byte[] encodeTypeValue(String value)
public byte[] encodeDefault(ITypeValue value, Context context, EncodePresenceMapBuilder presenceMapBuilder)
TypeEncoder
encodeDefault
in interface TypeEncoder
encodeDefault
in class GenericType
value
- the valuecontext
- the contextpresenceMapBuilder
- the PM Mappublic Template getTemplate()
public void setTemplate(Template template)
Copyright © 2000-2017 EPAM Systems. All Rights Reserved.