Package com.oss.metadata
Class SequenceFieldInfo
java.lang.Object
com.oss.metadata.FieldInfo
com.oss.metadata.SequenceFieldInfo
The SequenceFieldInfo class represents the properties of
individual components of the types SET and SEQUENCE.
- Since:
- ASN.1/Java 2.1
-
Method Summary
Modifier and TypeMethodDescriptionReturns the default value for this sequence field, and null if there is no default value.boolean
Returns true if the field has a default value, and false if not.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.boolean
isGroup
(boolean groupID) Return whether this field of the sequence is part of a group.boolean
Returns true if the field belongs to an extension group, and false if not.boolean
Returns true if the field is OPTIONAL, and false otherwiseMethods inherited from class com.oss.metadata.FieldInfo
getFieldName, getTypeInfo, getTypeInfo, isExtension, isReferenced, isReferencedByOpenType, isRemoved
-
Method Details
-
isOptional
public boolean isOptional()Returns true if the field is OPTIONAL, and false otherwise- Overrides:
isOptional
in classFieldInfo
- 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 classFieldInfo
- 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. -
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. -
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. -
getDefaultValue
Returns the default value for this sequence field, and null if there is no default value.- Overrides:
getDefaultValue
in classFieldInfo
- Returns:
- default value
-