jp.bitmeister.asn1.type.builtin
Class ENUMERATED
java.lang.Object
jp.bitmeister.asn1.type.ASN1Type
jp.bitmeister.asn1.type.PrimitiveType<java.math.BigInteger>
jp.bitmeister.asn1.type.builtin.INTEGER
jp.bitmeister.asn1.type.builtin.ENUMERATED
- All Implemented Interfaces:
- java.lang.Cloneable, ValueComparable
public abstract class ENUMERATED
- extends INTEGER
Represents ASN.1 'ENUMERATED' type.
This is the base class used for defining 'ENUMERATED' types. A sub-class of
ENUMERATED
must contain one or more fields annotated as
@ASN1Enumeration
.
- Author:
- WATANABE, Jun.
- See Also:
ASN1Enumeration
Constructor Summary |
ENUMERATED()
Instantiates an empty ENUMERATED . |
ENUMERATED(java.math.BigInteger value)
Instantiates an ENUMERATED and initialize it with the
BigInteger value. |
ENUMERATED(long value)
Instantiates an ENUMERATED and initialize it with the long
value. |
Method Summary |
<R,E extends java.lang.Throwable>
R |
|
accept(ASN1Visitor<R,E> visitor)
Accepts the ASN1Visitor and calls a visit method of the
visitor. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ENUMERATED
public ENUMERATED()
- Instantiates an empty
ENUMERATED
.
ENUMERATED
public ENUMERATED(java.math.BigInteger value)
- Instantiates an
ENUMERATED
and initialize it with the
BigInteger
value.
- Parameters:
value
- The value to be assigned.
ENUMERATED
public ENUMERATED(long value)
- Instantiates an
ENUMERATED
and initialize it with the long
value.
- Parameters:
value
- The value to be assigned.
accept
public <R,E extends java.lang.Throwable> R accept(ASN1Visitor<R,E> visitor)
throws E extends java.lang.Throwable
- Description copied from class:
ASN1Type
- Accepts the
ASN1Visitor
and calls a visit
method of the
visitor.
- Overrides:
accept
in class INTEGER
- Parameters:
visitor
- The visitor.
- Returns:
- Result.
- Throws:
E
- When an error occured in the visit
method of the
visitor.
E extends java.lang.Throwable