pasn
Class ASN1ConstructedStructuredObject

java.lang.Object
  extended by pasn.ASN1Object
      extended by pasn.ASN1ConstructedStructuredObject
All Implemented Interfaces:
java.lang.Iterable<ASN1Component>, ASN1ConstructedObject, ASN1DefaultValuedObject, ASN1EncodingSpecificObject, ASN1GenericObject, ASN1Resetable, ASN1StructuredObject
Direct Known Subclasses:
ASN1Sequence, ASN1Set

public abstract class ASN1ConstructedStructuredObject
extends ASN1Object
implements ASN1ConstructedObject, ASN1StructuredObject

Author:
ncottin

Constructor Summary
ASN1ConstructedStructuredObject(int type)
           
 
Method Summary
static boolean equal(java.util.Collection<ASN1Component> comps1, java.util.Collection<ASN1Component> comps2)
           
 boolean equals(java.lang.Object obj)
           
 ASN1Component findComponent(int index)
           
 ASN1Component findComponent(java.lang.String name)
           
 java.lang.String getASN1Name()
           
 ASN1ConstructedStructuredObject getDefaultValue()
           
static java.lang.String getName(java.lang.String className)
           
 boolean hasDefaultValue()
           
 boolean hasValue()
           
static boolean hasValue(java.util.Collection<ASN1Component> components)
           
 boolean hasValueOrDefault()
           
 boolean isValueDefault()
           
 java.util.Iterator<ASN1Component> iterator()
           
 void reset()
           Removes the value (or list or set of values) of this ASN.1 object.
 boolean setDefaultValue(ASN1ConstructedStructuredObject defaultValue)
           
 
Methods inherited from class pasn.ASN1Object
getAsnClass, getSpecificEncoding, getSpecificEncoding, getType, hasSpecificEncodings, setSpecificEncoding
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface pasn.ASN1GenericObject
getAsnClass, getType
 
Methods inherited from interface pasn.ASN1EncodingSpecificObject
getSpecificEncoding, hasSpecificEncodings
 
Methods inherited from interface pasn.ASN1StructuredObject
getComponents
 

Constructor Detail

ASN1ConstructedStructuredObject

public ASN1ConstructedStructuredObject(int type)
Method Detail

getASN1Name

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

getName

public static final java.lang.String getName(java.lang.String className)

setDefaultValue

public final boolean setDefaultValue(ASN1ConstructedStructuredObject defaultValue)

getDefaultValue

public final ASN1ConstructedStructuredObject getDefaultValue()

hasDefaultValue

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

hasValueOrDefault

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

isValueDefault

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

equal

public static final boolean equal(java.util.Collection<ASN1Component> comps1,
                                  java.util.Collection<ASN1Component> comps2)

findComponent

public final ASN1Component findComponent(java.lang.String name)
Specified by:
findComponent in interface ASN1StructuredObject

findComponent

public final ASN1Component findComponent(int index)
Specified by:
findComponent in interface ASN1StructuredObject

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

iterator

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

hasValue

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

hasValue

public static final boolean hasValue(java.util.Collection<ASN1Component> components)

equals

public final boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object