Package com.oss.asn1

Class External

All Implemented Interfaces:
Serializable, Cloneable

public class External extends Sequence
The External class represents the ASN.1 EXTERNAL type.
   EXTERNAL ::= [UNIVERSAL 8] IMPLICIT SEQUENCE {
        direct-reference      OBJECT IDENTIFIER OPTIONAL,
        indirect-reference    INTEGER OPTIONAL,
        data-value-descriptor ObjectDescriptor OPTIONAL,
        encoding              CHOICE {
                single-ASN1-type [0] ABSTRACT-SYNTAX.&Type,
              octet-aligned    [1] IMPLICIT OCTET STRING --<TYPENAME "_octet_aligned_octets">-- ,
              arbitrary        [2] IMPLICIT BIT STRING --<TYPENAME "_arbitrary_bits">--
        }
    }
 
Since:
ASN.1/Java 1.0-beta A
See Also:
  • Constructor Details

    • External

      public External()
      Default constructor.
    • External

      public External(ObjectIdentifier direct_reference, INTEGER indirect_reference, ObjectDescriptor data_value_descriptor, External.Encoding encoding)
      Construct an External from AbstractData components. Any null argument means that the correspondent optional field is omitted from the value.
      Parameters:
      direct_reference - the direct-reference component.
      indirect_reference - the indirect-reference component.
      data_value_descriptor - the data-value-descriptor component.
      encoding - the encoding component.
    • External

      public External(ObjectIdentifier direct_reference, long indirect_reference, ObjectDescriptor data_value_descriptor, External.Encoding encoding)
      Construct an External from components.
      Parameters:
      direct_reference - the direct-reference component.
      indirect_reference - the indirect-reference component.
      data_value_descriptor - the data-value-descriptor component.
      encoding - the encoding component.
    • External

      public External(External.Encoding encoding)
      Construct an External from it's components. Note that the components direct-reference, indirect-reference, and data-value-descriptor are OPTIONAL, and therefore are not present as parameters to the component-constructor.
      Parameters:
      encoding - the encoding component.
  • Method Details

    • getDirectReference

      @Deprecated public ObjectIdentifier getDirectReference()
      Deprecated.
      The accessor for the field "direct-reference". This method is deprecated. Use the getDirect_reference method instead.
      Returns:
      the value of the "direct-reference" component of the ObjectIdentifier class.
    • getIndirectReference

      @Deprecated public long getIndirectReference()
      Deprecated.
      The accessor for the field "indirect-reference". This method is deprecated. Use the getIndirect_reference method instead.
      Returns:
      the value of the "indirect-reference" component of the long type.
    • getDataValueDescriptor

      @Deprecated public ObjectDescriptor getDataValueDescriptor()
      Deprecated.
      The accessor for the field "data-value-descriptor". This method is deprecated. Use the getData_value_descriptor method instead.
      Returns:
      the value of the "data-value-descriptor" component of the ObjectIdentifier class.
    • getEncoding

      public External.Encoding getEncoding()
      The accessor for the field "encoding".
      Returns:
      the value of the "encoding" component of the External class.
    • setDirectReference

      @Deprecated public void setDirectReference(ObjectIdentifier directReference)
      Deprecated.
      The mutator for the OPTIONAL field "direct-reference", marking it as present. This method is deprecated. Use the setDirect_reference method instead.
      Parameters:
      directReference - the value of the 1st component to set in the Sequence.
    • setIndirectReference

      @Deprecated public void setIndirectReference(long indirect_reference)
      Deprecated.
      The mutator for the OPTIONAL field "indirect-reference", marking it as present. This method is deprecated. Use the setIndirect_reference method instead.
      Parameters:
      indirect_reference - the Java "long" value of the 2nd component to set in the Sequence.
    • setIndirectReference

      @Deprecated public void setIndirectReference(INTEGER indirect_reference)
      Deprecated.
      The mutator for the OPTIONAL field "indirect-reference", marking it as present. This method is deprecated. Use the setIndirect_reference method instead.
      Parameters:
      indirect_reference - the INTEGER value of the 2nd component to set in the Sequence.
    • setDataValueDescriptor

      @Deprecated public void setDataValueDescriptor(ObjectDescriptor dataValueDescriptor)
      Deprecated.
      The mutator for the OPTIONAL field "data-value-descriptor", marking it as present. This method is deprecated. Use the setData_value_descriptor method instead.
      Parameters:
      dataValueDescriptor - the value of the 3rd component to to set in the Sequence.
    • setEncoding

      public void setEncoding(External.Encoding encoding)
      The mutator for the field "encoding".
      Parameters:
      encoding - the value of the 4th component to set in the Sequence.
    • hasDirectReference

      @Deprecated public boolean hasDirectReference()
      Deprecated.
      Check whether the OPTIONAL "direct-reference" component is present. This method is deprecated. Use the hasDirect_reference method instead.
      Returns:
      true if "direct-reference" is present.
    • hasIndirectReference

      @Deprecated public boolean hasIndirectReference()
      Deprecated.
      Check whether the OPTIONAL "indirect-reference" component is present. This method is deprecated. Use the hasIndirect_reference method instead.
      Returns:
      true if "indirect-reference" is present.
    • hasDataValueDescriptor

      @Deprecated public boolean hasDataValueDescriptor()
      Deprecated.
      Check whether the OPTIONAL "data-value-descriptor" component is present. This method is deprecated. Use the hasData_value_descriptor method instead.
      Returns:
      true if "data-value-descriptor" is present.
    • deleteDirectReference

      @Deprecated public void deleteDirectReference()
      Deprecated.
      Delete the OPTIONAL "direct-reference" component, marking it as absent. This method is deprecated. Use the deleteDirect_reference method instead.
    • deleteIndirectReference

      @Deprecated public void deleteIndirectReference()
      Deprecated.
      Delete the OPTIONAL "indirect-reference" component, marking it as absent. This method is deprecated. Use the deleteIndirect_reference method instead.
    • deleteDataValueDescriptor

      @Deprecated public void deleteDataValueDescriptor()
      Deprecated.
      Delete the OPTIONAL "data-value-descriptor" component, marking it as absent. This method is deprecated. Use the deleteData_value_descriptor method instead.
    • getDirect_reference

      public ObjectIdentifier getDirect_reference()
      The accessor for the field "direct-reference".
      Returns:
      the value of the "direct-reference" component of the ObjectIdentifier class.
    • setDirect_reference

      public void setDirect_reference(ObjectIdentifier direct_reference)
      The mutator for the OPTIONAL field "direct-reference", marking it as present.
      Parameters:
      direct_reference - the value of the 1st component, to set in the Sequence.
    • hasDirect_reference

      public boolean hasDirect_reference()
      Check whether the OPTIONAL "direct-reference" component is present.
      Returns:
      true if "direct-reference" is present.
    • deleteDirect_reference

      public void deleteDirect_reference()
      Delete the OPTIONAL "direct-reference" component, marking it as absent.
    • getIndirect_reference

      public long getIndirect_reference()
      The accessor for the field "indirect-reference".
      Returns:
      the value of the "indirect-reference" component of the long type.
    • setIndirect_reference

      public void setIndirect_reference(long indirect_reference)
      The mutator for the OPTIONAL field "indirect-reference", marking it as present.
      Parameters:
      indirect_reference - the Java "long" value of the 2nd component to set in the Sequence.
    • setIndirect_reference

      public void setIndirect_reference(INTEGER indirect_reference)
      The mutator for the OPTIONAL field "indirect-reference", marking it as present.
      Parameters:
      indirect_reference - the INTEGER value of the 2nd component to set in the Sequence.
    • hasIndirect_reference

      public boolean hasIndirect_reference()
      Check whether the OPTIONAL "indirect-reference" component is present.
      Returns:
      true if "indirect-reference" is present.
    • deleteIndirect_reference

      public void deleteIndirect_reference()
      Delete the OPTIONAL "indirect-reference" component, marking it as absent.
    • getData_value_descriptor

      public ObjectDescriptor getData_value_descriptor()
      The accessor for the field "data-value-descriptor".
      Returns:
      the value of the "data-value-descriptor" component of the ObjectIdentifier class.
    • setData_value_descriptor

      public void setData_value_descriptor(ObjectDescriptor data_value_descriptor)
      The mutator for the OPTIONAL field "data-value-descriptor", marking it as present.
      Parameters:
      data_value_descriptor - the value of the 3rd component to set in the Sequence.
    • hasData_value_descriptor

      public boolean hasData_value_descriptor()
      Check whether the OPTIONAL "data-value-descriptor" component is present.
      Returns:
      true if "data-value-descriptor" is present.
    • deleteData_value_descriptor

      public void deleteData_value_descriptor()
      Delete the OPTIONAL "data-value-descriptor" component, marking it as absent.