Class Fields

java.lang.Object
com.oss.metadata.Fields

public abstract class Fields extends Object
The Fields class represents the properties of a list of fields of a structured ASN.1 type, such as SEQUENCE or SET.
Since:
ASN.1/Java 2.1
  • Constructor Details

    • Fields

      public Fields()
  • Method Details

    • count

      public abstract int count() throws MetadataException
      Return a count of the number of fields in the FieldInfo array.
      Returns:
      number of fields.
      Throws:
      MetadataException - if attempt to resolve the weak reference fails: class could not be found or typeInfo was not available.
    • getFieldInfo

      public abstract FieldInfo getFieldInfo(int i) throws MetadataException
      Return the FieldInfo for the field at the index, counting from zero.
      Parameters:
      i - field index.
      Returns:
      i-th FieldInfo, where 0 is the first index.
      Throws:
      MetadataException - if attempt to resolve the weak reference fails: class could not be found or typeInfo was not available.
    • getFieldInfo

      public FieldInfo getFieldInfo(String name) throws MetadataException
      Returns the FieldInfo for the field with the specified name.
      Parameters:
      name - field name.
      Returns:
      FieldInfo with the specified name, or null if no field with that name was found
      Throws:
      MetadataException - if attempt to resolve the weak reference fails: class could not be found or typeInfo was not available.