jp.bitmeister.asn1.type.builtin
Class ENUMERATED

java.lang.Object
  extended by jp.bitmeister.asn1.type.ASN1Type
      extended by jp.bitmeister.asn1.type.PrimitiveType<java.math.BigInteger>
          extended by jp.bitmeister.asn1.type.builtin.INTEGER
              extended by 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

Field Summary
 
Fields inherited from class jp.bitmeister.asn1.type.ASN1Type
stringBuilder
 
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 jp.bitmeister.asn1.type.builtin.INTEGER
compareTo, identifier, intValue, isIntValue, isLongValue, longValue, set, set, set
 
Methods inherited from class jp.bitmeister.asn1.type.PrimitiveType
clear, clone, cloneValue, hashCode, hasValue, value, valueEquals
 
Methods inherited from class jp.bitmeister.asn1.type.ASN1Type
equals, instantiate, matches, specification, toString, validate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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


Copyright © 2012 BitMeister Inc. All Rights Reserved.