XCMS Toolkit

schemajic.model
Class ASN1SetOf

java.lang.Object
  extended by schemajic.model.ASN1Value
      extended by schemajic.model.ASN1SetOf
Direct Known Subclasses:
AuthAttributes, DigestAlgorithmIdentifiers, RecipientInfos, SignedAttributes, SignerInfos, UnauthAttributes, UnprotectedAttributes, UnsignedAttributes, Values

public class ASN1SetOf
extends ASN1Value

Models the abstract concept of the value of an ASN.1 SET OF type.

Type SET OF is a complex builtin type defined by referencing any ASN.1 type (either a simple builtin type or a complex type whose definition is based on a CHOICE, SET, SET OF, SEQUENCE, or SEQUENCE OF type).

Universal class tag assignment is UNIVERSAL 17.

XML ASN.1 type name is SET_OF.

Version:
1.00 - 2006/02/09
Author:
support@phillipgriffin.com

Constructor Summary
ASN1SetOf()
          Constructor for ASN1SetOf sets current ASN.1 value items list to a new Vector().
 
Method Summary
 java.lang.Object accept(ValueVisitor visitor, java.lang.Object object)
          Accepts a visit from the ValueVisitor
 void add(ASN1Value v)
          Adds the value of an ASN.1 type to the current list of values.
 Type getAsn1Type()
          Returns an ASN.1 SET OF type.
 java.util.List getItems()
          Returns the current set items.
 java.util.Iterator iterator()
          Returns an iterator for the current set items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASN1SetOf

public ASN1SetOf()
Constructor for ASN1SetOf sets current ASN.1 value items list to a new Vector().

Method Detail

add

public void add(ASN1Value v)
Adds the value of an ASN.1 type to the current list of values.

Parameters:
v - item to be added to the list of values

iterator

public java.util.Iterator iterator()
Returns an iterator for the current set items.


getItems

public java.util.List getItems()
Returns the current set items.


accept

public java.lang.Object accept(ValueVisitor visitor,
                               java.lang.Object object)
                        throws VisitorException
Accepts a visit from the ValueVisitor

Specified by:
accept in class ASN1Value
Parameters:
visitor - the function applicator (mapper), which knows how to process the given object type and apply appropriate operations to the elements of this type of object
object - an object to be visited
Returns:
a visit to the provided object
Throws:
VisitorException

getAsn1Type

public Type getAsn1Type()
Returns an ASN.1 SET OF type.

Overrides:
getAsn1Type in class ASN1Value

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.