Package uk.co.real_logic.sbe.xml
Class SetType
java.lang.Object
uk.co.real_logic.sbe.xml.Type
uk.co.real_logic.sbe.xml.SetType
SBE set tpe representing a bitset of options.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHolder for valid values for SBE schema enum type. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchoices()The collection of possibleSetType.Choicevalues for a bitset.intThe encodedLength (in octets) of the encodingTypeThe encoding type of the bitset to be used on the wire.Get theSetType.Choicerepresented by a String name.getChoice(PrimitiveValue value) Get theSetType.Choicerepresented by aPrimitiveValue.booleanAlways false.toString()Methods inherited from class uk.co.real_logic.sbe.xml.Type
deprecated, description, name, offsetAttribute, offsetAttribute, packageName, presence, referencedName, semanticType, sinceVersion, sinceVersion
-
Field Details
-
SET_TYPE
SBE schema set type.- See Also:
-
-
Constructor Details
-
SetType
Construct a new SetType from XML Schema.- Parameters:
node- from the XML Schema ParsinggivenName- for the node.referencedName- of the type when created from a ref in a composite.- Throws:
XPathExpressionException- on invalid XPath.
-
-
Method Details
-
encodingType
The encoding type of the bitset to be used on the wire.- Returns:
- encoding type of the bitset to be used on the wire.
-
encodedLength
public int encodedLength()The encodedLength (in octets) of the encodingType- Specified by:
encodedLengthin classType- Returns:
- encodedLength of the encodingType
-
getChoice
Get theSetType.Choicerepresented by aPrimitiveValue.- Parameters:
value- to get- Returns:
- the
SetType.Choicerepresented by aPrimitiveValueor null if not found.
-
getChoice
Get theSetType.Choicerepresented by a String name.- Parameters:
name- to get- Returns:
- the
SetType.Choicerepresented by a String name or null if not found.
-
choices
The collection of possibleSetType.Choicevalues for a bitset.- Returns:
- the collection of possible
SetType.Choicevalues for a bitset.
-
isVariableLength
public boolean isVariableLength()Always false.Is the type variable length when encoded.
- Specified by:
isVariableLengthin classType- Returns:
- true if the type is variable length when encoded.
-
toString
-