pasn
Class ASN1Choice

java.lang.Object
  extended by pasn.ASN1Object
      extended by pasn.ASN1Choice
All Implemented Interfaces:
java.lang.Iterable<ASN1MandatoryComponent>, ASN1AlternativeObject, ASN1DefaultValuedObject, ASN1EncodingSpecificObject, ASN1ExplicitObject, ASN1GenericObject, ASN1Resetable, ASN1TransparentObject

public abstract class ASN1Choice
extends ASN1Object
implements ASN1ExplicitObject, ASN1AlternativeObject

Author:
ncottin

Constructor Summary
ASN1Choice()
           
 
Method Summary
 boolean decode(ASN1DecodedObject ado)
           
 ASN1MandatoryComponent findComponent(int index)
           
 ASN1MandatoryComponent findComponent(java.lang.String name)
           
 java.lang.String getASN1Name()
           
 ASN1MandatoryComponent getInnerComponent()
           
 boolean hasDefaultValue()
           
 boolean hasValue()
           
 boolean hasValueOrDefault()
           
 boolean isValueDefault()
           
 java.util.Iterator<ASN1MandatoryComponent> iterator()
           
 boolean refersTo(ASN1DecodedObject ado)
           
 void reset()
           Removes the value (or list or set of values) of this ASN.1 object.
 void setDefaultValue(ASN1MandatoryComponent defaultValue)
           
 java.lang.String toString()
           
 
Methods inherited from class pasn.ASN1Object
getAsnClass, getSpecificEncoding, getSpecificEncoding, getType, hasSpecificEncodings, setSpecificEncoding
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface pasn.ASN1AlternativeObject
getComponents
 

Constructor Detail

ASN1Choice

public ASN1Choice()
Method Detail

getASN1Name

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

getInnerComponent

public final ASN1MandatoryComponent getInnerComponent()
Specified by:
getInnerComponent in interface ASN1TransparentObject

setDefaultValue

public final void setDefaultValue(ASN1MandatoryComponent defaultValue)

hasDefaultValue

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

hasValue

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

hasValueOrDefault

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

isValueDefault

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

findComponent

public final ASN1MandatoryComponent findComponent(java.lang.String name)
Specified by:
findComponent in interface ASN1AlternativeObject

findComponent

public final ASN1MandatoryComponent findComponent(int index)
Specified by:
findComponent in interface ASN1AlternativeObject

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

refersTo

public final boolean refersTo(ASN1DecodedObject ado)
Specified by:
refersTo in interface ASN1TransparentObject

decode

public final boolean decode(ASN1DecodedObject ado)
Specified by:
decode in interface ASN1TransparentObject

iterator

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

toString

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