|
||||||||||
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)
StructuredType
NamedTypeSpecification
of this instance.
set
in class StructuredType
component
- 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 StructuredType
elementName
- The identifier of element.component
- The ASN.1 data to be assignedpublic ASN1Type get(java.lang.String elementName)
StructuredType
get
in class StructuredType
elementName
- The identifier of element.
public void validate()
ASN1Type
validate
in class ASN1Type
public void clear()
ASN1Type
clear
in class ASN1Type
public boolean hasValue()
ASN1Type
hasValue
in class ASN1Type
true
when this ASN.1 data has value.public boolean valueEquals(java.lang.Object other)
ASN1Type
true
when they have same value even if
their types are different.
valueEquals
in class ASN1Type
other
- The ASN.1 data which to be compared.
true
when they have same value.public int hashCode()
ASN1Type
hashCode
in class ASN1Type
Object.hashCode()
public java.lang.Object clone()
ASN1Type
clone
in class ASN1Type
Object.clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |