public abstract class Type extends Object
| Constructor and Description |
|---|
Type(Node node,
String givenName,
String referencedName)
Construct a new Type from XML Schema.
|
Type(String name,
Presence presence,
String description,
int sinceVersion,
int deprecated,
String semanticType)
Construct a new Type from direct values.
|
Type(String name,
String packageName,
Presence presence,
String description,
int sinceVersion,
int deprecated,
String semanticType)
Construct a new Type from direct values.
|
| Modifier and Type | Method and Description |
|---|---|
int |
deprecated()
Version in which type was deprecated.
|
String |
description()
The description of the Type (if set) or null.
|
abstract int |
encodedLength()
The encodedLength (in octets) of the Type.
|
abstract boolean |
isVariableLength()
Is the type variable length when encoded.
|
String |
name()
The name of the type.
|
int |
offsetAttribute()
The offset attribute of the
Type from the schema. |
void |
offsetAttribute(int offsetAttribute)
Set the offset attribute of the
Type from the schema. |
String |
packageName()
The packageName attribute of the
Type from the schema. |
Presence |
presence()
The
Presence of the type. |
String |
referencedName()
Get the name of the type field is from a reference.
|
String |
semanticType()
The FIX semanticType of the Type.
|
int |
sinceVersion()
The version since this was added to the template.
|
void |
sinceVersion(int version)
Set the sinceVersion for the type.
|
public Type(Node node, String givenName, String referencedName)
node - from the XML Schema Parsing.givenName - of this node, if null then the attributed name will be used.referencedName - of the type when created from a ref in a composite.public Type(String name, Presence presence, String description, int sinceVersion, int deprecated, String semanticType)
name - of the type.presence - of the type.description - of the type or null.sinceVersion - for the type.deprecated - version in which this was deprecated.semanticType - of the type or null.public Type(String name, String packageName, Presence presence, String description, int sinceVersion, int deprecated, String semanticType)
name - of the type.packageName - of the type.presence - of the type.description - of the type or null.sinceVersion - for the typedeprecated - version in which this wa.s deprecated.semanticType - of the type or null.public String name()
public String referencedName()
public abstract int encodedLength()
Overridden by subtypes. This returns 0 by default.
public String description()
public int sinceVersion()
public void sinceVersion(int version)
version - to be set.public int deprecated()
public String semanticType()
public abstract boolean isVariableLength()
public int offsetAttribute()
Type from the schema.public void offsetAttribute(int offsetAttribute)
Type from the schema.offsetAttribute - to set.Copyright © 2013-2024 Real Logic Limited. All Rights Reserved.