XCMS Toolkit

schemajic.model
Class ASN1SequenceOf

java.lang.Object
  extended by schemajic.model.ASN1Value
      extended by schemajic.model.ASN1SequenceOf
Direct Known Subclasses:
RecipientEncryptedKeys

public class ASN1SequenceOf
extends ASN1Value

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

Type SEQUENCE 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 16, the same tag value used for ASN.1 type SEQUENCE.

XML ASN.1 type name is SEQUENCE_OF.

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

Constructor Summary
ASN1SequenceOf()
          Constructor for ASN1SequenceOf 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 SEQUENCE OF type.
 java.util.List getItems()
          Returns the current sequence items.
 java.util.Iterator iterator()
          Returns an iterator for the current sequence items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASN1SequenceOf

public ASN1SequenceOf()
Constructor for ASN1SequenceOf 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 sequence items.


getItems

public java.util.List getItems()
Returns the current sequence 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 SEQUENCE OF type.

Overrides:
getAsn1Type in class ASN1Value

XCMS Toolkit


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