pasn.encoding
Class ASN1Component

java.lang.Object
  extended by pasn.encoding.ASN1GenericOrTaggedObject
      extended by pasn.encoding.ASN1MandatoryComponent
          extended by pasn.encoding.ASN1Component
All Implemented Interfaces:
ASN1DefaultValuedObject, ASN1Resetable

public class ASN1Component
extends ASN1MandatoryComponent

Author:
ncottin

Field Summary
 
Fields inherited from class pasn.encoding.ASN1MandatoryComponent
PRIMARY_VERSION
 
Constructor Summary
ASN1Component(java.lang.String name, ASN1GenericObject asn)
           
ASN1Component(java.lang.String name, ASN1GenericObject asn, boolean optional)
           
ASN1Component(java.lang.String name, ASN1TaggedObject tasn)
           
ASN1Component(java.lang.String name, ASN1TaggedObject tasn, boolean optional)
           
 
Method Summary
 boolean isOptional()
           
 
Methods inherited from class pasn.encoding.ASN1MandatoryComponent
getASN1Name, getName, getVersion, hasName, isNamed, setName, setVersion
 
Methods inherited from class pasn.encoding.ASN1GenericOrTaggedObject
equals, getInnerObject, getObject, getTaggedObject, hasDefaultValue, hasObject, hasTaggedObject, hasValue, hasValueOrDefault, isPrimitive, isValueDefault, reset, toString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASN1Component

public ASN1Component(java.lang.String name,
                     ASN1GenericObject asn,
                     boolean optional)

ASN1Component

public ASN1Component(java.lang.String name,
                     ASN1TaggedObject tasn,
                     boolean optional)

ASN1Component

public ASN1Component(java.lang.String name,
                     ASN1GenericObject asn)

ASN1Component

public ASN1Component(java.lang.String name,
                     ASN1TaggedObject tasn)
Method Detail

isOptional

public final boolean isOptional()
Returns:
True if this component is declared OPTIONAL, false if mandatory