Class MultipleTypeConstraint

java.lang.Object
com.oss.metadata.Constraints
com.oss.metadata.MultipleTypeConstraint

public class MultipleTypeConstraint extends Constraints
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 Details

    • getInnerTypeConstraints

      public InnerTypeConstraint[] 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