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.
|
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, presence, referencedName, semanticType, sinceVersion, sinceVersion
public 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 ParsinggivenName
- 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 typepresence
- of the typedescription
- of the type or nullsemanticType
- of the type or nullprimitiveType
- of the EncodedDataTypelength
- of the EncodedDataTypevarLen
- of the EncodedDataTypepublic int length()
public boolean isVariableLength()
isVariableLength
in class Type
public void variableLength(boolean variableLength)
variableLength
- true if variable length.public PrimitiveType primitiveType()
public int encodedLength()
encodedLength
in class Type
public PrimitiveValue constVal()
public PrimitiveValue minValue()
public PrimitiveValue maxValue()
public PrimitiveValue nullValue()
public String characterEncoding()
public String valueRef()
Copyright © 2013-2022 Real Logic Limited. All Rights Reserved.