pasn
Class ASN1ConstructedStructuredCollection<T extends ASN1GenericObject>

java.lang.Object
  extended by pasn.ASN1Object
      extended by pasn.ASN1ConstructedStructuredCollection<T>
Type Parameters:
T -
All Implemented Interfaces:
java.lang.Iterable<ASN1MandatoryComponent>, ASN1Collection<T>, ASN1ConstructedObject, ASN1DefaultValuedObject, ASN1EncodingSpecificObject, ASN1GenericObject, ASN1MandatoryComponentCreator<T>, ASN1Resetable, ASN1StructuredMandatoryObject
Direct Known Subclasses:
ASN1SequenceOf, ASN1SetOf

public abstract class ASN1ConstructedStructuredCollection<T extends ASN1GenericObject>
extends ASN1Object
implements ASN1Collection<T>

Author:
ncottin

Constructor Summary
ASN1ConstructedStructuredCollection(int type, java.util.Collection<ASN1MandatoryComponent> values)
           
 
Method Summary
 boolean add(T asn)
           
 void clear()
           
 boolean equal(java.util.Collection<ASN1MandatoryComponent> comps1, java.util.Collection<ASN1MandatoryComponent> comps2)
           
 java.lang.String getASN1Name()
           
 java.util.Collection<ASN1MandatoryComponent> getComponents()
           
 java.lang.String getComponentsName()
           
 int getMaximumSize()
           
 int getMinimumSize()
           
 boolean hasDefaultValue()
           
 boolean hasValue()
           
 boolean hasValueOrDefault()
           
 boolean isDefaultEmpty()
           
 boolean isEmpty()
           
 boolean isValueDefault()
           
 java.util.Iterator<ASN1MandatoryComponent> iterator()
           
 boolean namedComponents()
           
 void reset()
           Removes the value (or list or set of values) of this ASN.1 object.
 void setComponentsName(java.lang.String name)
           
 void setDefaultValue(ASN1ConstructedStructuredCollection<T> defaultValue)
           
 void setMaximumSize(int maxSize)
           
 void setMinimumSize(int minSize)
           
 void validateConstraints(int size)
           
 
Methods inherited from class pasn.ASN1Object
getAsnClass, getSpecificEncoding, getSpecificEncoding, getType, hasSpecificEncodings, setSpecificEncoding
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface pasn.ASN1Collection
createComponent
 
Methods inherited from interface pasn.ASN1GenericObject
getAsnClass, getType
 
Methods inherited from interface pasn.ASN1EncodingSpecificObject
getSpecificEncoding, hasSpecificEncodings
 
Methods inherited from interface pasn.ASN1MandatoryComponentCreator
createObject
 

Constructor Detail

ASN1ConstructedStructuredCollection

public ASN1ConstructedStructuredCollection(int type,
                                           java.util.Collection<ASN1MandatoryComponent> values)
Method Detail

getComponents

public final java.util.Collection<ASN1MandatoryComponent> getComponents()
Specified by:
getComponents in interface ASN1Collection<T extends ASN1GenericObject>

setComponentsName

public final void setComponentsName(java.lang.String name)

namedComponents

public final boolean namedComponents()
Specified by:
namedComponents in interface ASN1StructuredMandatoryObject

getComponentsName

public final java.lang.String getComponentsName()
Specified by:
getComponentsName in interface ASN1StructuredMandatoryObject

getASN1Name

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

setDefaultValue

public final void setDefaultValue(ASN1ConstructedStructuredCollection<T> defaultValue)

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

isEmpty

public final boolean isEmpty()
Specified by:
isEmpty in interface ASN1Collection<T extends ASN1GenericObject>

isDefaultEmpty

public final boolean isDefaultEmpty()
Specified by:
isDefaultEmpty in interface ASN1Collection<T extends ASN1GenericObject>

equal

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

add

public final boolean add(T asn)
Specified by:
add in interface ASN1Collection<T extends ASN1GenericObject>

clear

public final void clear()
Specified by:
clear in interface ASN1Collection<T extends ASN1GenericObject>

hasValue

public final boolean hasValue()
Specified by:
hasValue 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

iterator

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

setMinimumSize

public final void setMinimumSize(int minSize)

getMinimumSize

public final int getMinimumSize()

setMaximumSize

public final void setMaximumSize(int maxSize)

getMaximumSize

public final int getMaximumSize()

validateConstraints

public final void validateConstraints(int size)
                               throws ASN1ConstraintException
Specified by:
validateConstraints in interface ASN1Collection<T extends ASN1GenericObject>
Throws:
ASN1ConstraintException