|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjp.bitmeister.asn1.type.NamedTypeSpecification
public class NamedTypeSpecification
Specifications of an element that contained in a StructuredType.
An instance of this class contains static information of an element of a
structured type which applied by annotations and type definitions. Each
element is a Field object declared in a StructuredType and
annotated as @ASN1Element or @ASN1Alternative.
ASN1Element,
ASN1Alternative,
StructuredType| Method Summary | |
|---|---|
int |
compareTo(NamedTypeSpecification compared)
|
java.lang.String |
identifier()
Returns the identifier of this element. |
ASN1Type |
instantiate()
Creates a new instance of this element type. |
boolean |
isSameType(NamedTypeSpecification obj)
Tests if the element represented by the NamedTypeSpecification is
the same ASN.1 type of this element. |
boolean |
matches(ASN1TagClass tagClass,
int tagNumber)
Tests if the ASN.1 tag matches this element. |
ASN1TagValue |
tag()
Returns the tag of this element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String identifier()
public ASN1TagValue tag()
public boolean isSameType(NamedTypeSpecification obj)
NamedTypeSpecification is
the same ASN.1 type of this element.
obj - The NamedTypeSpecification to be compared.
true when the field is the same ASN.1 type.
public boolean matches(ASN1TagClass tagClass,
int tagNumber)
tagClass - ASN.1 tag class.tagNumber - ASN.1 tag number.
true when the tag class and tag number matches this
element.public ASN1Type instantiate()
public int compareTo(NamedTypeSpecification compared)
compareTo in interface java.lang.Comparable<NamedTypeSpecification>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||