pasn
Class ASN1Enumerated

java.lang.Object
  extended by pasn.ASN1Object
      extended by pasn.ASN1SimpleObject<java.math.BigInteger>
          extended by pasn.ASN1Enumerated
All Implemented Interfaces:
java.lang.Iterable<java.math.BigInteger>, ASN1DefaultValuedObject, ASN1EncodingSpecificObject, ASN1GenericObject, ASN1PrimitiveObject<java.math.BigInteger>, ASN1Resetable

public abstract class ASN1Enumerated
extends ASN1SimpleObject<java.math.BigInteger>
implements java.lang.Iterable<java.math.BigInteger>

Author:
ncottin

Constructor Summary
ASN1Enumerated()
           
ASN1Enumerated(java.math.BigInteger value)
           
ASN1Enumerated(long value)
           
 
Method Summary
 java.lang.String getASN1Name()
           
abstract  java.util.Set<java.math.BigInteger> getValues()
           
 boolean hasDefaultValue()
           
 boolean hasValue()
           
 boolean isValueDefault()
           
 java.util.Iterator<java.math.BigInteger> iterator()
           
 void reset()
           Removes the value (or list or set of values) of this ASN.1 object.
 void setDecodedValue(java.lang.Object value)
           
 void setDefaultValue(ASN1Enumerated value)
           
 void setDefaultValue(long value)
           
 void setValue(ASN1Enumerated value)
           
 void setValue(long value)
           
 java.lang.String toString()
           
 void validateConstraints(java.math.BigInteger value)
           
 
Methods inherited from class pasn.ASN1SimpleObject
equals, getDefaultValue, getValue, getValueOrDefault, hasValueOrDefault, setDefaultValue, setValue
 
Methods inherited from class pasn.ASN1Object
getAsnClass, getSpecificEncoding, getSpecificEncoding, getType, hasSpecificEncodings, setSpecificEncoding
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface pasn.ASN1GenericObject
getAsnClass, getType
 
Methods inherited from interface pasn.ASN1EncodingSpecificObject
getSpecificEncoding, hasSpecificEncodings
 

Constructor Detail

ASN1Enumerated

public ASN1Enumerated()

ASN1Enumerated

public ASN1Enumerated(java.math.BigInteger value)
               throws ASN1ConstraintException
Throws:
ASN1ConstraintException

ASN1Enumerated

public ASN1Enumerated(long value)
               throws ASN1ConstraintException
Throws:
ASN1ConstraintException
Method Detail

getASN1Name

public final java.lang.String getASN1Name()
Specified by:
getASN1Name in interface ASN1GenericObject

reset

public final void reset()
Description copied from interface: ASN1Resetable

Removes the value (or list or set of values) of this ASN.1 object. This applies to simple and structured ASN.1 objects

Specified by:
reset in interface ASN1Resetable

setValue

public final void setValue(long value)
                    throws ASN1ConstraintException
Throws:
ASN1ConstraintException

setDefaultValue

public final void setDefaultValue(long value)
                           throws ASN1ConstraintException
Throws:
ASN1ConstraintException

setValue

public final void setValue(ASN1Enumerated value)
                    throws ASN1ConstraintException
Throws:
ASN1ConstraintException

setDefaultValue

public final void setDefaultValue(ASN1Enumerated value)
                           throws ASN1ConstraintException
Throws:
ASN1ConstraintException

hasValue

public final boolean hasValue()
Specified by:
hasValue in interface ASN1GenericObject

hasDefaultValue

public final boolean hasDefaultValue()
Specified by:
hasDefaultValue in interface ASN1DefaultValuedObject

isValueDefault

public final boolean isValueDefault()
Specified by:
isValueDefault in interface ASN1DefaultValuedObject

setDecodedValue

public final void setDecodedValue(java.lang.Object value)
                           throws ASN1FormatException,
                                  ASN1ConstraintException
Specified by:
setDecodedValue in interface ASN1PrimitiveObject<java.math.BigInteger>
Throws:
ASN1FormatException
ASN1ConstraintException

validateConstraints

public final void validateConstraints(java.math.BigInteger value)
                               throws ASN1ConstraintException
Specified by:
validateConstraints in interface ASN1PrimitiveObject<java.math.BigInteger>
Throws:
ASN1ConstraintException

getValues

public abstract java.util.Set<java.math.BigInteger> getValues()

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object

iterator

public final java.util.Iterator<java.math.BigInteger> iterator()
Specified by:
iterator in interface java.lang.Iterable<java.math.BigInteger>