|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjp.bitmeister.asn1.type.ASN1Type
jp.bitmeister.asn1.type.StructuredType
jp.bitmeister.asn1.type.ConstructiveType
public abstract class ConstructiveType
The base class for structured types defined by referencing a list of ASN.1 types.
This class provides generic interfaces and common methods for classes that
represents structured types which defined by referencing a list of ASN.1
types. This class is the parent class of SEQUENCE and SET.
SEQUENCE,
SET| Field Summary |
|---|
| Fields inherited from class jp.bitmeister.asn1.type.ASN1Type |
|---|
stringBuilder |
| Constructor Summary | |
|---|---|
ConstructiveType()
|
|
| Method Summary | |
|---|---|
void |
clear()
Clears the value of this ASN.1 data. |
java.lang.Object |
clone()
Creates and returns a copy of this ASN.1 data. |
ASN1Type |
get(java.lang.String elementName)
Gets the ASN.1 data from the element specified by the identifier of this instance. |
ASN1Type |
getComponent(ElementSpecification element)
Returns the ASN.1 data that assigned to the element of this instance. |
ElementSpecification[] |
getElementTypeList()
Returns the array of ElementSpecification that associated to the
elements contained in the type. |
int |
hashCode()
Returns a hash code value for this ASN.1 data. |
boolean |
hasValue()
Tests if this ASN.1 data has value. |
void |
set(NamedTypeSpecification component,
ASN1Type data)
Sets the ASN.1 data to the element specified by the NamedTypeSpecification of this instance. |
void |
set(java.lang.String elementName,
ASN1Type component)
Sets the ASN.1 data to the element specified by the identifier of this instance. |
void |
validate()
Tests if this ASN.1 data has valid value. |
boolean |
valueEquals(java.lang.Object other)
Tests if the value of this ASN.1 data equals the value of the other ASN.1 data. |
| Methods inherited from class jp.bitmeister.asn1.type.ASN1Type |
|---|
accept, equals, instantiate, matches, specification, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConstructiveType()
| Method Detail |
|---|
public ElementSpecification[] getElementTypeList()
ElementSpecification that associated to the
elements contained in the type.
ElementSpecification.public ASN1Type getComponent(ElementSpecification element)
element - The ElementSpecification associated to the element.
public void set(NamedTypeSpecification component,
ASN1Type data)
StructuredTypeNamedTypeSpecification of this instance.
set in class StructuredTypecomponent - Indicates the element that the data to be assigned.data - The data to be assigned.
public void set(java.lang.String elementName,
ASN1Type component)
StructuredType
set in class StructuredTypeelementName - The identifier of element.component - The ASN.1 data to be assignedpublic ASN1Type get(java.lang.String elementName)
StructuredType
get in class StructuredTypeelementName - The identifier of element.
public void validate()
ASN1Type
validate in class ASN1Typepublic void clear()
ASN1Type
clear in class ASN1Typepublic boolean hasValue()
ASN1Type
hasValue in class ASN1Typetrue when this ASN.1 data has value.public boolean valueEquals(java.lang.Object other)
ASN1Typetrue when they have same value even if
their types are different.
valueEquals in class ASN1Typeother - The ASN.1 data which to be compared.
true when they have same value.public int hashCode()
ASN1Type
hashCode in class ASN1TypeObject.hashCode()public java.lang.Object clone()
ASN1Type
clone in class ASN1TypeObject.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||