Package com.oss.asn1

Class UnrestrCharacterString

All Implemented Interfaces:
Serializable, Cloneable

public class UnrestrCharacterString extends Sequence
The UnrestrCharacterString class represents the ASN.1 CHARACTER STRING type. Note that "data-value-descriptor" is not included in the class, for it is constrained to be absent. It uses the top-level nested class, Identification, from the EmbeddedPDV class.
 UnrestrictedCharacterString ::= [UNIVERSAL 29] SEQUENCE {
        identification [0] CHOICE {
                syntaxes [0] SEQUENCE {
                    abstract [0] OBJECT IDENTIFIER,
                    transfer [1] OBJECT IDENTIFIER
                },
                syntax [1] OBJECT IDENTIFIER,
                presentation-context-id [2] INTEGER,
                context-negotiation [3] SEQUENCE {
                    presentation-context-id [0] INTEGER,
                    transfer-syntax [1] OBJECT IDENTIFIER
                },
                transfer-syntax [4] OBJECT IDENTIFIER,
                fixed [5] NULL
        },
        -- data-value-descriptor [1] ObjectDescriptor OPTIONAL,
        string-value [2] OCTET STRING
 } -- (WITH COMPONENTS {... , data-value-descriptor ABSENT })
 
Since:
ASN.1/Java 6.0
See Also:
  • Field Details

    • _identification

      public EmbeddedPDV.Identification _identification
      Represents the identification field of CHARACTER STRING type.
    • _string_value

      public OctetString _string_value
      Represents the string-value field of CHARACTER STRING type.
  • Constructor Details

    • UnrestrCharacterString

      public UnrestrCharacterString()
      The default constructor.
    • UnrestrCharacterString

      public UnrestrCharacterString(EmbeddedPDV.Identification identification, OctetString string_value)
      Construct with components.
      Parameters:
      identification - the identification component.
      string_value - the string-value component.
  • Method Details

    • clone

      public UnrestrCharacterString clone()
      Clone 'this' object.
      Returns:
      copy of 'this' object.
    • getIdentification

      public EmbeddedPDV.Identification getIdentification()
      The accessor for the field "identification".
      Returns:
      the value of the "identification" component of the Identification class
    • getString_value

      public OctetString getString_value()
      The accessor for the field "string-value".
      Returns:
      the value of the "string_value" component of the OctetString class
    • setIdentification

      public void setIdentification(EmbeddedPDV.Identification identification)
      The mutator for the field "identification".
      Parameters:
      identification - the value of the component to set in the Sequence.
    • setString_value

      public void setString_value(OctetString string_value)
      The mutator for the field "string-value".
      Parameters:
      string_value - the value of the component to set in the Sequence.
    • equalTo

      public boolean equalTo(Sequence that)
      Compare 'this' object to another object to see if their contents are the same.
      Specified by:
      equalTo in class Sequence
      Parameters:
      that - the AbstractCollection object to compare 'this' object to.
      Returns:
      true if contents of both objects are the same.
    • equalTo

      public boolean equalTo(UnrestrCharacterString that)
      Compare 'this' object to another object to see if their contents are the same.
      Parameters:
      that - the AbstractCollection object to compare 'this' object to.
      Returns:
      true if contents of both objects are the same.
    • getTypeName

      public String getTypeName()
      Returns the name of ASN.1 type this java class represents.
      Overrides:
      getTypeName in class Sequence
      Returns:
      the name of the ASN.1 type.