public class EncodedDataType extends Type
DEFAULT_PRESENCE| Constructor and Description |
|---|
EncodedDataType(Node node)
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
|
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
|
int |
offsetAttribute()
Return the offset attribute of the
EncodedDataType from the schema |
PrimitiveType |
primitiveType()
Return the primitiveType attribute of the type
|
int |
sinceVersion()
Return the sinceVersion of the
EncodedDataType |
int |
size()
The size (in octets) of the encoding as length of the primitiveType times its count.
|
void |
variableLength(boolean variableLength) |
description, name, presence, semanticTypepublic EncodedDataType(Node node)
node - from the XML Schema Parsingpublic 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()
public void variableLength(boolean variableLength)
public PrimitiveType primitiveType()
public int size()
public PrimitiveValue constVal() throws IllegalArgumentException
IllegalArgumentExceptionpublic PrimitiveValue minValue()
public PrimitiveValue maxValue()
public PrimitiveValue nullValue()
public String characterEncoding()
public int sinceVersion()
EncodedDataTypeEncodedDataTypepublic int offsetAttribute()
EncodedDataType from the schemaCopyright © 2013 Real Logic Ltd. All Rights Reserved.