Package com.oss.asn1

Class External.Encoding

All Implemented Interfaces:
Serializable, Cloneable
Enclosing class:
External

public static class External.Encoding extends Choice
The External.Encoding class is used by the External class, and represents the External.encoding component, which is an ASN.1 CHOICE.
Since:
ASN.1/Java 6.0
See Also:
  • Field Details

    • singleASN1Type_Chosen

      public static final short singleASN1Type_Chosen
      Class constants identifying chosen components.
      See Also:
    • octetAligned_Chosen

      public static final short octetAligned_Chosen
      See Also:
    • arbitrary_Chosen

      public static final short arbitrary_Chosen
      See Also:
    • single_ASN1_type_chosen

      public static final int single_ASN1_type_chosen
      See Also:
    • octet_aligned_chosen

      public static final int octet_aligned_chosen
      See Also:
    • arbitrary_chosen

      public static final int arbitrary_chosen
      See Also:
  • Constructor Details

    • Encoding

      public Encoding()
      Default constructor.
  • Method Details

    • clone

      public External.Encoding clone()
      Clone 'this' object.
      Overrides:
      clone in class Choice
      Returns:
      deep copy of 'this' object.
    • createWithSingleASN1Type

      @Deprecated public static External.Encoding createWithSingleASN1Type(OpenType singleASN1Type)
      Deprecated.
      Create the Encoding class instance with the chosen component, "single-ASN1-type". This method is deprecated. Use the createEncodingWithSingle_ASN1_type method instead.
      Parameters:
      singleASN1Type - the value for "single-ASN1-type" to set.
    • createWithOctetAligned

      @Deprecated public static External.Encoding createWithOctetAligned(OctetString octetAligned)
      Deprecated.
      Create the Encoding class instance with the chosen component, "octet-aligned". This method is deprecated. Use the createEncodingWithOctetAligned method instead.
      Parameters:
      octetAligned - the value for "octet-aligned" to set.
      Returns:
      the instance of the Encoding class.
    • createWithArbitrary

      @Deprecated public static External.Encoding createWithArbitrary(BitString arbitrary)
      Deprecated.
      Create the Encoding class instance with the chosen component, "arbitrary". This method is deprecated. Use the createEncodingWithArbitrary method instead.
      Parameters:
      arbitrary - the value for "arbitrary" to set.
      Returns:
      the instance of the Encoding class.
    • createEncodingWithArbitrary

      public static External.Encoding createEncodingWithArbitrary(BitString arbitrary)
      Create the Encoding class instance with the chosen component, "arbitrary".
      Parameters:
      arbitrary - the value for "arbitrary" to set.
      Returns:
      the instance of the Encoding class.
    • setSingleASN1Type

      @Deprecated public void setSingleASN1Type(OpenType value)
      Deprecated.
      The mutator for the field "single-ASN1-type" in Encoding. This method is deprecated. Use the setSingle_ASN1_type method instead.
      Parameters:
      value - the OpenType value of the 1st component to set in the Choice.
    • setOctetAligned

      @Deprecated public void setOctetAligned(OctetString value)
      Deprecated.
      The mutator for the field "octet-aligned" in Encoding. This method is deprecated. Use the setOctet_aligned method instead.
      Parameters:
      value - the OctetString value of the 2nd component to set in the Choice.
    • setArbitrary

      public void setArbitrary(BitString value)
      The mutator for the field "arbitrary" in Encoding.
      Parameters:
      value - the BitString value of the 3rd component to set in the Choice.
    • hasSingleASN1Type

      @Deprecated public boolean hasSingleASN1Type()
      Deprecated.
      Check whether "single-ASN1-type" component is chosen. This method is deprecated. Use the hasSingle_ASN1_type method instead.
      Returns:
      true if 'this' object's value has chosen "single-ASN1-type".
    • hasOctetAligned

      @Deprecated public boolean hasOctetAligned()
      Deprecated.
      Check whether "octet-aligned" component is chosen. This method is deprecated. Use the hasOctet_aligned method instead.
      Returns:
      true if 'this' object's value has chosen "octet-aligned".
    • hasArbitrary

      public boolean hasArbitrary()
      Check whether "arbitrary" component is chosen.
      Returns:
      true if 'this' object's value has chosen "arbitrary".
    • getArbitrary

      public BitString getArbitrary()
      The accessor for the "arbitrary" component.
      Returns:
      the "arbitrary" component if 'this' object's value has chosen "arbitrary".
    • createEncodingWithSingle_ASN1_type

      public static External.Encoding createEncodingWithSingle_ASN1_type(OpenType single_ASN1_type)
      Create the Encoding class instance with the chosen component, "single-ASN1-type".
      Parameters:
      single_ASN1_type - the value for "single-ASN1-type" to set.
      Returns:
      the instance of the Encoding class.
    • hasSingle_ASN1_type

      public boolean hasSingle_ASN1_type()
      Check whether "single-ASN1-type" component is chosen.
      Returns:
      true if 'this' object's value has chosen "single-ASN1-type".
    • getSingle_ASN1_type

      public OpenType getSingle_ASN1_type()
      The accessor for the "single-ASN1-type" component.
      Returns:
      the "single-ASN1-type" component if 'this' object's value has chosen "single-ASN1-type".
    • setSingle_ASN1_type

      public void setSingle_ASN1_type(OpenType single_ASN1_type)
      The mutator for the field "single-ASN1-type" in Encoding.
      Parameters:
      single_ASN1_type - the OpenType value of the 1st component to set in the Choice.
    • createEncodingWithOctet_aligned

      public static External.Encoding createEncodingWithOctet_aligned(OctetString octet_aligned)
      Create the Encoding class instance with the chosen component, "octet-aligned".
      Parameters:
      octet_aligned - the value for "octet-aligned" to set.
      Returns:
      the instance of the Encoding class.
    • hasOctet_aligned

      public boolean hasOctet_aligned()
      Check whether "octet-aligned" component is chosen.
      Returns:
      true if 'this' object's value has chosen "octet-aligned".
    • getOctet_aligned

      public OctetString getOctet_aligned()
      The accessor for the "octet-aligned" component.
      Returns:
      the "octet-aligned" component if 'this' object's value has chosen "octet-aligned".
    • setOctet_aligned

      public void setOctet_aligned(OctetString octet_aligned)
      The mutator for the field "octet-aligned" in Encoding.
      Parameters:
      octet_aligned - the OctetString value of the 2nd component to set in the Choice.