Package com.oss.asn1

Class InfoObjectSet

All Implemented Interfaces:
com.oss.asn1.Sizeable, Serializable, Cloneable, Iterable
Direct Known Subclasses:
IndexedInfoObjectSet

public abstract class InfoObjectSet extends SequenceOf
The InfoObjectSet class represents a set of information objects of the appropriate information object class.
Since:
ASN.1/Java 1.0-beta A
See Also:
  • Constructor Details

    • InfoObjectSet

      public InfoObjectSet()
      The default constructor.
    • InfoObjectSet

      public InfoObjectSet(InfoObject[] objects, int flags)
      Construct an instance of InfoObjectSet from an array of information objects and flags. Currently the only flag supported is EXTENSIBLE.
      Parameters:
      objects - an array of InfoObject objects.
      flags - all flags to be used "OR"ed together, 0 indicates no flags.
    • InfoObjectSet

      public InfoObjectSet(InfoObject[] objects, int flags, String modname, String osetname)
      Construct an instance of InfoObjectSet from an array of information objects, flags and a name. Currently the only flag supported is EXTENSIBLE.
      Parameters:
      objects - an array of InfoObject objects.
      flags - all flags to be used "OR"ed together, 0 indicates no flags.
      modname - the name of ASN.1 module where this information object set is defined.
      osetname - the ASN.1 name of this this information object set.
  • Method Details

    • isExtensible

      public boolean isExtensible()
      Check whether 'this' InfoObjectSet corresponds to an extensible information object set.
      Returns:
      true if the InfoObjectSet is extensible.
    • lookup

      public Enumeration lookup(Enumeration cursor, int fieldIndex, AbstractData value) throws MetadataException
      Find the Enumeration which identifies the info object(s) by the field index and the AbstractData value.
      Parameters:
      cursor - identifies one or several rows for a limited search, if it is null the entire InfoObjectSet is searched. Note, currently no checking is performed as to whether or not InfoObjects from "cursor" belong to 'this' InfoObjectSet is performed.
      fieldIndex - identifies the field to be searched.
      value - identifies the value of the field to be searched.
      Returns:
      Enumeration that identifies InfoObject(s) containing the field at "fieldIndex" with "value", or null.
      Throws:
      MetadataException
    • addElement

      @Deprecated public void addElement(InfoObject element)
      Deprecated.
      As of release 8.0 replaced by addObject(InfoObject)
      Add an AbstractData object at the end of the InfoObjectSet container if it is extensible
      Parameters:
      element - the object to add.
    • addObject

      public void addObject(InfoObject element)
      Add an AbstractData object at the end of the InfoObjectSet container if it is extensible
      Parameters:
      element - the object to add.
    • insertElement

      @Deprecated public void insertElement(InfoObject element, int atIndex)
      Deprecated.
      As of release 8.0 replaced by insertObject(InfoObject, int)
      Insert an AbstractData object to the container at the index if the InfoObjectSet is extensible.
      Parameters:
      element - the object to insert.
      atIndex - the slot to insert the object into.
    • insertObject

      public void insertObject(InfoObject element, int atIndex)
      Insert an AbstractData object to the container at the index if the InfoObjectSet is extensible.
      Parameters:
      element - the object to insert.
      atIndex - the slot to insert the object into.
    • removeObject

      public void removeObject(InfoObject element)
      Remove the information object, which object reference matches the reference of the input object, from this information object set.
      Parameters:
      element - the element to remove.
    • setObject

      public void setObject(InfoObject element, int atIndex)
      Set the Element at the index in the container to the new element.
      Parameters:
      element - the new object to set.
      atIndex - the index to set the object at.
    • getObject

      public InfoObject getObject(int atIndex)
      Returns an information object identified by its index from the original array of objects.
      Parameters:
      atIndex - the index of the object to get.
      Returns:
      information object identified by index.
    • removeAllObjects

      public void removeAllObjects()
      Remove all AbstractData object elements from the container. Object set becomes empty.