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.
|
| 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()
Return the name of the type
|
int |
offsetAttribute()
Return the offset attribute of the
Type from the schema |
void |
offsetAttribute(int offsetAttribute)
Set the offset attribute of the
Type from the schema |
Presence |
presence()
Return the presence of the type
|
String |
referencedName()
Get the name of the type field is from a reference.
|
String |
semanticType()
The semanticType of the Type
|
int |
sinceVersion()
The version since this was added to the template.
|
public Type(Node node, String givenName, String referencedName)
node - from the XML Schema ParsinggivenName - 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 typepresence - of the typedescription - of the type or nullsinceVersion - for the typedeprecated - version in which this was deprecated.semanticType - of the type or nullpublic String name()
public String referencedName()
public Presence presence()
public abstract int encodedLength()
Overridden by subtypes. This returns 0 by default.
public String description()
public int sinceVersion()
public int deprecated()
public String semanticType()
public abstract boolean isVariableLength()
public int offsetAttribute()
Type from the schemapublic void offsetAttribute(int offsetAttribute)
Type from the schemaoffsetAttribute - to setCopyright © 2013-2021 Real Logic Limited. All Rights Reserved.