Class ContainerInfo


public class ContainerInfo extends VectorInfo
The ContainerInfo class represents the properties of an ASN.1 SET or SEQUENCE OF type.
Since:
ASN.1/Java 2.1
  • 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 class TypeInfo
      Returns:
      true if the type is a simple type.
    • getElementType

      public TypeInfo getElementType() throws MetadataException
      Returns the type metadata for an element of the container.
      Returns:
      TypeInfo of the element type.
      Throws:
      MetadataException - if attempt to resolve the weak reference fails: class could not be found or typeInfo was not available.
    • getElementType

      public TypeInfo getElementType(Object context) throws MetadataException
      Returns the type metadata for an element of the container.
      Parameters:
      context - project environment
      Returns:
      TypeInfo of the element type.
      Throws:
      MetadataException - if attempt to resolve the weak reference fails: class could not be found or typeInfo was not available.
    • getElementName

      public String getElementName()
      Returns the name of the element of the container.
      Returns:
      name of the element or null if element is unnamed.