Package com.oss.metadata
Class CollectionInfo
java.lang.Object
com.oss.metadata.TypeInfo
com.oss.metadata.CollectionInfo
- Direct Known Subclasses:
ChoiceInfo
,SequenceInfo
,SetInfo
The CollectionInfo class defines common properties of ASN.1 collection
types: SEQUENCE, SET and CHOICE
- Since:
- ASN.1/Java 2.1
-
Method Summary
Modifier and TypeMethodDescriptionReturn the list of fields for the type.boolean
Return true if the type is a simple type.int
Return the number of fields that appear after the extension marker.Methods inherited from class com.oss.metadata.TypeInfo
createInstance, createInstance, forName, forName, getASN1ModuleName, getASN1TypeName, getClassName, getConstraints, getJavaClass, getJavaClass, getName, getTags, isExtensible, isNullable, isPrimitive, isSorted, isUseableByBER, isUseableByCER, isUseableByDER, isUseableByEXER, isUseableByJSON, isUseableByOER, isUseableByPER, isUseableByXER, isUserClass, isUseThreadContextClassLoader, setUseThreadContextClassLoader
-
Method Details
-
isSimpleType
public boolean isSimpleType()Return true if the type is a simple type. The type is simple if it is not a set, sequence, set-of, sequence-of, choice, embedded-pdv, external or unrestricted character string type.- Overrides:
isSimpleType
in classTypeInfo
- Returns:
- true if the type is a simple type.
-
getFields
Return the list of fields for the type.- Returns:
- list of fields
-
numberOfKnownExtensions
public int numberOfKnownExtensions()Return the number of fields that appear after the extension marker.- Returns:
- number of fields that appear after the extension marker.
-