Class SetType

java.lang.Object
uk.co.real_logic.sbe.xml.Type
uk.co.real_logic.sbe.xml.SetType

public class SetType extends Type
SBE set tpe representing a bitset of options.
  • Field Details

  • Constructor Details

    • SetType

      public SetType(Node node, String givenName, String referencedName) throws XPathExpressionException
      Construct a new SetType from XML Schema.
      Parameters:
      node - from the XML Schema Parsing
      givenName - for the node.
      referencedName - of the type when created from a ref in a composite.
      Throws:
      XPathExpressionException - on invalid XPath.
  • Method Details

    • encodingType

      public PrimitiveType 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:
      encodedLength in class Type
      Returns:
      encodedLength of the encodingType
    • getChoice

      public SetType.Choice getChoice(PrimitiveValue value)
      Get the SetType.Choice represented by a PrimitiveValue.
      Parameters:
      value - to get
      Returns:
      the SetType.Choice represented by a PrimitiveValue or null if not found.
    • getChoice

      public SetType.Choice getChoice(String name)
      Get the SetType.Choice represented by a String name.
      Parameters:
      name - to get
      Returns:
      the SetType.Choice represented by a String name or null if not found.
    • choices

      public Collection<SetType.Choice> choices()
      The collection of possible SetType.Choice values for a bitset.
      Returns:
      the collection of possible SetType.Choice values for a bitset.
    • isVariableLength

      public boolean isVariableLength()
      Always false.

      Is the type variable length when encoded.

      Specified by:
      isVariableLength in class Type
      Returns:
      true if the type is variable length when encoded.
    • toString

      public String toString()
      Overrides:
      toString in class Object