public class EnumType extends Type
Modifier and Type | Class and Description |
---|---|
static class |
EnumType.ValidValue
Holder for valid values for and
EnumType . |
Modifier and Type | Field and Description |
---|---|
static String |
ENUM_TYPE
SBE schema enum type.
|
Modifier and Type | Method and Description |
---|---|
int |
encodedLength()
The encodedLength (in octets) of the encodingType
|
PrimitiveType |
encodingType()
The
PrimitiveType used to encode the enum. |
EnumType.ValidValue |
getValidValue(PrimitiveValue value)
Get the
EnumType.ValidValue represented by a PrimitiveValue . |
EnumType.ValidValue |
getValidValue(String name)
Get the
EnumType.ValidValue represented by a string name. |
boolean |
isVariableLength()
Is the type variable length when encoded.
|
PrimitiveValue |
nullValue()
The nullValue of the type.
|
String |
toString() |
Collection<EnumType.ValidValue> |
validValues()
The collection of valid values for this enumeration.
|
deprecated, description, name, offsetAttribute, offsetAttribute, presence, referencedName, semanticType, sinceVersion, sinceVersion
public static final String ENUM_TYPE
public PrimitiveType encodingType()
PrimitiveType
used to encode the enum.PrimitiveType
used to encode the enum.public int encodedLength()
encodedLength
in class Type
public EnumType.ValidValue getValidValue(PrimitiveValue value)
EnumType.ValidValue
represented by a PrimitiveValue
.value
- to lookupEnumType.ValidValue
represented by a PrimitiveValue
or null.public EnumType.ValidValue getValidValue(String name)
EnumType.ValidValue
represented by a string name.name
- to lookupEnumType.ValidValue
represented by a string name or null.public PrimitiveValue nullValue()
public Collection<EnumType.ValidValue> validValues()
public boolean isVariableLength()
isVariableLength
in class Type
Copyright © 2013-2022 Real Logic Limited. All Rights Reserved.