public class SetType extends Type
Modifier and Type | Class and Description |
---|---|
static class |
SetType.Choice
Holder for valid values for SBE schema enum type.
|
Modifier and Type | Field and Description |
---|---|
static String |
SET_TYPE
SBE schema set type.
|
Constructor and Description |
---|
SetType(Node node,
String givenName,
String referencedName)
Construct a new SetType from XML Schema.
|
Modifier and Type | Method and Description |
---|---|
Collection<SetType.Choice> |
choices()
The collection of possible
SetType.Choice values for a bitset. |
int |
encodedLength()
The encodedLength (in octets) of the encodingType
|
PrimitiveType |
encodingType()
The encoding type of the bitset to be used on the wire.
|
SetType.Choice |
getChoice(PrimitiveValue value)
Get the
SetType.Choice represented by a PrimitiveValue . |
SetType.Choice |
getChoice(String name)
Get the
SetType.Choice represented by a String name. |
boolean |
isVariableLength()
Always false.
|
String |
toString() |
deprecated, description, name, offsetAttribute, offsetAttribute, presence, referencedName, semanticType, sinceVersion, sinceVersion
public static final String SET_TYPE
public SetType(Node node, String givenName, String referencedName) throws XPathExpressionException
node
- from the XML Schema ParsinggivenName
- for the node.referencedName
- of the type when created from a ref in a composite.XPathExpressionException
- on invalid XPath.public PrimitiveType encodingType()
public int encodedLength()
encodedLength
in class Type
public SetType.Choice getChoice(PrimitiveValue value)
SetType.Choice
represented by a PrimitiveValue
.value
- to getSetType.Choice
represented by a PrimitiveValue
or null if not found.public SetType.Choice getChoice(String name)
SetType.Choice
represented by a String name.name
- to getSetType.Choice
represented by a String name or null if not found.public Collection<SetType.Choice> choices()
SetType.Choice
values for a bitset.SetType.Choice
values for a bitset.public boolean isVariableLength()
isVariableLength
in class Type
Copyright © 2013-2022 Real Logic Limited. All Rights Reserved.