jp.bitmeister.asn1.type.builtin
Class BigENUMERATED

java.lang.Object
  extended by jp.bitmeister.asn1.type.ASN1Type
      extended by jp.bitmeister.asn1.type.PrimitiveType<T>
          extended by jp.bitmeister.asn1.type.AbstractInteger<java.math.BigInteger>
              extended by jp.bitmeister.asn1.type.builtin.BigINTEGER
                  extended by jp.bitmeister.asn1.type.builtin.BigENUMERATED
All Implemented Interfaces:
java.lang.Cloneable, ValueComparable<AbstractInteger<java.math.BigInteger>>

public abstract class BigENUMERATED
extends BigINTEGER

An implementation of ASN.1 'ENUMERATED' type that can contain arbitrary-precision integer value.

This is the base class used for defining 'ENUMERATED' types which need to contain an arbitrary-precision value. A sub-class of BigENUMERATED must contain one or more fields annotated as @ASN1Enumeration.

Author:
WATANABE, Jun.
See Also:
ASN1Enumeration, ENUMERATED

Field Summary
 
Fields inherited from class jp.bitmeister.asn1.type.ASN1Type
stringBuilder
 
Constructor Summary
BigENUMERATED()
          Instantiates an empty BigENUMERATED.
BigENUMERATED(java.math.BigInteger value)
          Instantiates an BigENUMERATED and initialize it with the BigInteger value.
BigENUMERATED(long value)
          Instantiates an BigENUMERATED 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.
protected  boolean isEnum()
          Tests if base type of this data is ASN.1 'ENUMERATED'.
 
Methods inherited from class jp.bitmeister.asn1.type.builtin.BigINTEGER
getNamedNumberMap, isIntValue, isLongValue, set
 
Methods inherited from class jp.bitmeister.asn1.type.AbstractInteger
compareTo, identifier, intValue, longValue, 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

BigENUMERATED

public BigENUMERATED()
Instantiates an empty BigENUMERATED.


BigENUMERATED

public BigENUMERATED(java.math.BigInteger value)
Instantiates an BigENUMERATED and initialize it with the BigInteger value.

Parameters:
value - The value to be assigned.

BigENUMERATED

public BigENUMERATED(long value)
Instantiates an BigENUMERATED 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 BigINTEGER
Parameters:
visitor - The visitor.
Returns:
Result.
Throws:
E - When an error occurred in the visit method of the visitor.
E extends java.lang.Throwable

isEnum

protected boolean isEnum()
Description copied from class: AbstractInteger
Tests if base type of this data is ASN.1 'ENUMERATED'.

Overrides:
isEnum in class BigINTEGER
Returns:
true if base type of this data is ASN.1 'ENUMERATED'.


Copyright © 2012 BitMeister Inc. All Rights Reserved.