Class SequenceFieldInfo

java.lang.Object
com.oss.metadata.FieldInfo
com.oss.metadata.SequenceFieldInfo

public class SequenceFieldInfo extends FieldInfo
The SequenceFieldInfo class represents the properties of individual components of the types SET and SEQUENCE.
Since:
ASN.1/Java 2.1
  • Method Details

    • isOptional

      public boolean isOptional()
      Returns true if the field is OPTIONAL, and false otherwise
      Overrides:
      isOptional in class FieldInfo
      Returns:
      true if the field is OPTIONAL
    • hasDefault

      public boolean hasDefault()
      Returns true if the field has a default value, and false if not.
      Overrides:
      hasDefault in class FieldInfo
      Returns:
      true if the field has a default value
    • isGrouped

      public boolean isGrouped()
      Returns true if the field belongs to an extension group, and false if not.
      Overrides:
      isGrouped in class FieldInfo
      Returns:
      true if the field belongs to an extension group.
    • isGroup

      public boolean isGroup()
      Returns true if the field belongs to the same extension group as the previous field, and false if not in the same extension group or not part of a group. Groups are defined as sets of fields that are within the same version brackets.
      Overrides:
      isGroup in class FieldInfo
      Returns:
      true if the field belongs to the same extension group as the previous field.
    • isGroup

      public boolean isGroup(boolean groupID)
      Return whether this field of the sequence is part of a group. Groups are defined as sets of fields that are within the same version brackets.
      Overrides:
      isGroup in class FieldInfo
      Parameters:
      groupID - group indicator.
      Returns:
      true if the field belongs to the same extension group as previous field which group indicator is groupID.
    • getDefaultValue

      public AbstractData getDefaultValue()
      Returns the default value for this sequence field, and null if there is no default value.
      Overrides:
      getDefaultValue in class FieldInfo
      Returns:
      default value