Package com.oss.asn1
Class External.Encoding
java.lang.Object
com.oss.asn1.AbstractData
com.oss.asn1.Choice
com.oss.asn1.External.Encoding
- All Implemented Interfaces:
Serializable
,Cloneable
- Enclosing class:
- External
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 1.0-beta A
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final short
static final int
static final short
static final int
static final short
Class constants identified chosen components.Fields inherited from class com.oss.asn1.AbstractData
EQUALS, GREATER_THAN, LESS_THAN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic External.Encoding
createEncodingWithArbitrary
(BitString arbitrary) Create the Encoding class instance with the chosen component, "arbitrary".static External.Encoding
createEncodingWithOctet_aligned
(OctetString octet_aligned) Create the Encoding class instance with the chosen component, "octet-aligned".static External.Encoding
createEncodingWithSingle_ASN1_type
(OpenType single_ASN1_type) Create the Encoding class instance with the chosen component, "single-ASN1-type".static External.Encoding
createWithArbitrary
(BitString arbitrary) Deprecated.static External.Encoding
createWithOctetAligned
(OctetString octetAligned) Deprecated.static External.Encoding
createWithSingleASN1Type
(OpenType singleASN1Type) Deprecated.The accessor for the "arbitrary" component.The accessor for the "octet-aligned" component.The accessor for the "single-ASN1-type" component.boolean
Check whether "arbitrary" component is chosen.boolean
Check whether "octet-aligned" component is chosen.boolean
Deprecated.boolean
Check whether "single-ASN1-type" component is chosen.boolean
Deprecated.void
setArbitrary
(BitString value) The mutator for the field "arbitrary" in Encoding.void
setOctet_aligned
(OctetString octet_aligned) The mutator for the field "octet-aligned" in Encoding.void
setOctetAligned
(OctetString value) Deprecated.void
setSingle_ASN1_type
(OpenType single_ASN1_type) The mutator for the field "single-ASN1-type" in Encoding.void
setSingleASN1Type
(OpenType value) Deprecated.Methods inherited from class com.oss.asn1.Choice
clone, delete, equalTo, getChosenFlag, getChosenValue, hashCode, hasUnknownExtension
Methods inherited from class com.oss.asn1.AbstractData
equals, isEncodable, isPDU, isValid, toString, toString
-
Field Details
-
singleASN1Type_Chosen
public static final short singleASN1Type_ChosenClass constants identified 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
-
createWithSingleASN1Type
Deprecated.Create the Encoding class instance with the chosen component, "single-ASN1-type". This method is deprecated. Use thecreateEncodingWithSingle_ASN1_type
method instead.- Parameters:
singleASN1Type
- the value for "single-ASN1-type" to set.- Returns:
- the instance of the Encoding class.
-
createWithOctetAligned
Deprecated.Create the Encoding class instance with the chosen component, "octet-aligned". This method is deprecated. Use thecreateEncodingWithOctetAligned
method instead.- Parameters:
octetAligned
- the value for "octet-aligned" to set.- Returns:
- the instance of the Encoding class.
-
createWithArbitrary
Deprecated.Create the Encoding class instance with the chosen component, "arbitrary". This method is deprecated. Use thecreateEncodingWithArbitrary
method instead.- Parameters:
arbitrary
- the value for "arbitrary" to set.- Returns:
- the instance of the Encoding class.
-
createEncodingWithArbitrary
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.The mutator for the field "single-ASN1-type" in Encoding. This method is deprecated. Use thesetSingle_ASN1_type
method instead.- Parameters:
value
- the OpenType value of the 1st component to set in the Choice.
-
setOctetAligned
Deprecated.The mutator for the field "octet-aligned" in Encoding. This method is deprecated. Use thesetOctet_aligned
method instead.- Parameters:
value
- the OctetString value of the 2nd component to set in the Choice.
-
setArbitrary
The mutator for the field "arbitrary" in Encoding.- Parameters:
value
- the BitString value of the 3rd component to set in the Choice.
-
hasSingleASN1Type
Deprecated.Check whether "single-ASN1-type" component is chosen. This method is deprecated. Use thehasSingle_ASN1_type
method instead.- Returns:
- true if 'this' object's value has chosen "single-ASN1-type".
-
hasOctetAligned
Deprecated.Check whether "octet-aligned" component is chosen. This method is deprecated. Use thehasOctet_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
The accessor for the "arbitrary" component.- Returns:
- the "arbitrary" component if 'this' object's value has chosen "arbitrary".
-
createEncodingWithSingle_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
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
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
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
The accessor for the "octet-aligned" component.- Returns:
- the "octet-aligned" component if 'this' object's value has chosen "octet-aligned".
-
setOctet_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.
-