Package com.oss.asn1
Class External
java.lang.Object
com.oss.asn1.AbstractData
com.oss.asn1.AbstractCollection
com.oss.asn1.Sequence
com.oss.asn1.External
- All Implemented Interfaces:
Serializable
,Cloneable
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The External.Encoding class is used by the External class, and represents the External.encoding component, which is an ASN.1 CHOICE. -
Field Summary
Fields inherited from class com.oss.asn1.AbstractData
EQUALS, GREATER_THAN, LESS_THAN
-
Constructor Summary
ConstructorsConstructorDescriptionExternal()
Default constructor.External
(External.Encoding encoding) Construct an External from it's components.External
(ObjectIdentifier direct_reference, long indirect_reference, ObjectDescriptor data_value_descriptor, External.Encoding encoding) Construct an External from components.External
(ObjectIdentifier direct_reference, INTEGER indirect_reference, ObjectDescriptor data_value_descriptor, External.Encoding encoding) Construct an External from AbstractData components. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Delete the OPTIONAL "data-value-descriptor" component, marking it as absent.void
Deprecated.void
Delete the OPTIONAL "direct-reference" component, marking it as absent.void
Deprecated.void
Delete the OPTIONAL "indirect-reference" component, marking it as absent.void
Deprecated.The accessor for the field "data-value-descriptor".Deprecated.The accessor for the field "direct-reference".Deprecated.The accessor for the field "encoding".long
The accessor for the field "indirect-reference".long
Deprecated.boolean
Check whether the OPTIONAL "data-value-descriptor" component is present.boolean
Deprecated.boolean
Check whether the OPTIONAL "direct-reference" component is present.boolean
Deprecated.boolean
Check whether the OPTIONAL "indirect-reference" component is present.boolean
Deprecated.void
setData_value_descriptor
(ObjectDescriptor data_value_descriptor) The mutator for the OPTIONAL field "data-value-descriptor", marking it as present.void
setDataValueDescriptor
(ObjectDescriptor dataValueDescriptor) Deprecated.void
setDirect_reference
(ObjectIdentifier direct_reference) The mutator for the OPTIONAL field "direct-reference", marking it as present.void
setDirectReference
(ObjectIdentifier directReference) Deprecated.void
setEncoding
(External.Encoding encoding) The mutator for the field "encoding".void
setIndirect_reference
(long indirect_reference) The mutator for the OPTIONAL field "indirect-reference", marking it as present.void
setIndirect_reference
(INTEGER indirect_reference) The mutator for the OPTIONAL field "indirect-reference", marking it as present.void
setIndirectReference
(long indirect_reference) Deprecated.void
setIndirectReference
(INTEGER indirect_reference) Deprecated.Methods inherited from class com.oss.asn1.AbstractCollection
clone, delete, enumeratedComponents, hashCode
Methods inherited from class com.oss.asn1.AbstractData
equals, isEncodable, isPDU, isValid, toString, toString
-
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
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.The accessor for the field "direct-reference". This method is deprecated. Use thegetDirect_reference
method instead.- Returns:
- the value of the "direct-reference" component of the ObjectIdentifier class.
-
getIndirectReference
Deprecated.The accessor for the field "indirect-reference". This method is deprecated. Use thegetIndirect_reference
method instead.- Returns:
- the value of the "indirect-reference" component of the long type.
-
getDataValueDescriptor
Deprecated.The accessor for the field "data-value-descriptor". This method is deprecated. Use thegetData_value_descriptor
method instead.- Returns:
- the value of the "data-value-descriptor" component of the ObjectIdentifier class.
-
getEncoding
The accessor for the field "encoding".- Returns:
- the value of the "encoding" component of the External class.
-
setDirectReference
Deprecated.The mutator for the OPTIONAL field "direct-reference", marking it as present. This method is deprecated. Use thesetDirect_reference
method instead.- Parameters:
directReference
- the value of the 1st component to set in the Sequence.
-
setIndirectReference
Deprecated.The mutator for the OPTIONAL field "indirect-reference", marking it as present. This method is deprecated. Use thesetIndirect_reference
method instead.- Parameters:
indirect_reference
- the Java "long" value of the 2nd component to set in the Sequence.
-
setIndirectReference
Deprecated.The mutator for the OPTIONAL field "indirect-reference", marking it as present. This method is deprecated. Use thesetIndirect_reference
method instead.- Parameters:
indirect_reference
- the INTEGER value of the 2nd component to set in the Sequence.
-
setDataValueDescriptor
Deprecated.The mutator for the OPTIONAL field "data-value-descriptor", marking it as present. This method is deprecated. Use thesetData_value_descriptor
method instead.- Parameters:
dataValueDescriptor
- the value of the 3rd component to to set in the Sequence.
-
setEncoding
The mutator for the field "encoding".- Parameters:
encoding
- the value of the 4th component to set in the Sequence.
-
hasDirectReference
Deprecated.Check whether the OPTIONAL "direct-reference" component is present. This method is deprecated. Use thehasDirect_reference
method instead.- Returns:
- true if "direct-reference" is present.
-
hasIndirectReference
Deprecated.Check whether the OPTIONAL "indirect-reference" component is present. This method is deprecated. Use thehasIndirect_reference
method instead.- Returns:
- true if "indirect-reference" is present.
-
hasDataValueDescriptor
Deprecated.Check whether the OPTIONAL "data-value-descriptor" component is present. This method is deprecated. Use thehasData_value_descriptor
method instead.- Returns:
- true if "data-value-descriptor" is present.
-
deleteDirectReference
Deprecated.Delete the OPTIONAL "direct-reference" component, marking it as absent. This method is deprecated. Use thedeleteDirect_reference
method instead. -
deleteIndirectReference
Deprecated.Delete the OPTIONAL "indirect-reference" component, marking it as absent. This method is deprecated. Use thedeleteIndirect_reference
method instead. -
deleteDataValueDescriptor
Deprecated.Delete the OPTIONAL "data-value-descriptor" component, marking it as absent. This method is deprecated. Use thedeleteData_value_descriptor
method instead. -
getDirect_reference
The accessor for the field "direct-reference".- Returns:
- the value of the "direct-reference" component of the ObjectIdentifier class.
-
setDirect_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
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
The accessor for the field "data-value-descriptor".- Returns:
- the value of the "data-value-descriptor" component of the ObjectIdentifier class.
-
setData_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.
-