Package com.oss.metadata
Class MultipleTypeConstraint
java.lang.Object
com.oss.metadata.Constraints
com.oss.metadata.MultipleTypeConstraint
The MultipleTypeConstraint class represents the ASN.1
multiple type constraint. The WITH COMPONENTS in an example of a
multiple type constraint with Full Specification.
ResultPDU ::= SEQUENCE { queryID INTEGER, status INTEGER, result PrintableString OPTIONAL } ( WITH COMPONENTS { queryID, status (0), result PRESENT } )
- Since:
- ASN.1/Java 2.1
-
Method Summary
Modifier and TypeMethodDescriptionReturn the list of type constraints applied to each fieldboolean
Return true if this constraint is a full MultipleTypeConstraint and return false if this constraint is partial.
-
Method Details
-
getInnerTypeConstraints
Return the list of type constraints applied to each field- Returns:
- inner type constraints
-
isFullMultiType
public boolean isFullMultiType()Return true if this constraint is a full MultipleTypeConstraint and return false if this constraint is partial. A partial multiple type constraint would look like this:(WITH COMPONENTS {..., age ABSENT})
- Returns:
- true if the constraint is FullMultipleTypeConstraint and not PartialMultipleTypeConstraint
-