public class EncodedDataType extends Type
| Modifier and Type | Field and Description |
|---|---|
static String |
ENCODED_DATA_TYPE
SBE schema type.
|
| Constructor and Description |
|---|
EncodedDataType(Node node)
Construct a new encodedDataType from XML Schema.
|
EncodedDataType(Node node,
String givenName,
String referencedName)
Construct a new encodedDataType from XML Schema.
|
EncodedDataType(String name,
Presence presence,
String description,
String semanticType,
PrimitiveType primitiveType,
int length,
boolean varLen)
Construct a new EncodedDataType with direct values.
|
EncodedDataType(String name,
String packageName,
Presence presence,
String description,
String semanticType,
PrimitiveType primitiveType,
int length,
boolean varLen)
Construct a new EncodedDataType with direct values.
|
| Modifier and Type | Method and Description |
|---|---|
String |
characterEncoding()
The character encoding of the type
|
PrimitiveValue |
constVal()
The constant value of the type if specified
|
int |
encodedLength()
The encodedLength (in octets) of the encoding as length of the primitiveType times its count.
|
boolean |
isVariableLength()
Return the variableLength attribute of the type
|
int |
length()
Return the length attribute of the type
|
PrimitiveValue |
maxValue()
The maxValue of the type
|
PrimitiveValue |
minValue()
The minValue of the type
|
PrimitiveValue |
nullValue()
The nullValue of the type
|
PrimitiveType |
primitiveType()
Return the primitiveType attribute of the type
|
String |
toString() |
String |
valueRef()
Get the value of the valueRef attribute.
|
void |
variableLength(boolean variableLength)
Set if the type is variable length or not.
|
deprecated, description, name, offsetAttribute, offsetAttribute, packageName, presence, referencedName, semanticType, sinceVersion, sinceVersionpublic static final String ENCODED_DATA_TYPE
public EncodedDataType(Node node)
node - from the XML Schema Parsingpublic EncodedDataType(Node node, String givenName, String referencedName)
node - from the XML Schema Parsing.givenName - for this node.referencedName - of the type when created from a ref in a composite.public EncodedDataType(String name, Presence presence, String description, String semanticType, PrimitiveType primitiveType, int length, boolean varLen)
name - of the type.presence - of the type.description - of the type or null.semanticType - of the type or null.primitiveType - of the EncodedDataType.length - of the EncodedDataType.varLen - of the EncodedDataType.public EncodedDataType(String name, String packageName, Presence presence, String description, String semanticType, PrimitiveType primitiveType, int length, boolean varLen)
name - of the type.packageName - of the type.presence - of the type.description - of the type or null.semanticType - of the type or null.primitiveType - of the EncodedDataType.length - of the EncodedDataType.varLen - of the EncodedDataType.public int length()
public boolean isVariableLength()
isVariableLength in class Typepublic void variableLength(boolean variableLength)
variableLength - true if variable length.public PrimitiveType primitiveType()
public int encodedLength()
encodedLength in class Typepublic PrimitiveValue constVal()
public PrimitiveValue minValue()
public PrimitiveValue maxValue()
public PrimitiveValue nullValue()
public String characterEncoding()
public String valueRef()
Copyright © 2013-2024 Real Logic Limited. All Rights Reserved.