XCMS Toolkit

schemajic.schema
Class SequenceType

java.lang.Object
  extended by schemajic.schema.Type
      extended by schemajic.schema.SequenceType

public class SequenceType
extends Type

Schema for ASN.1 SEQUENCE type.

Universal class tag assignment is UNIVERSAL 16 (the same tag value for ASN.1 type SEQUENCE OF).

XML ASN.1 type name is SEQUENCE.

For more information on this ASN.1 type see Java class ASN1Sequence

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

Field Summary
 
Fields inherited from class schemajic.schema.Type
_tags
 
Constructor Summary
SequenceType(Module module, java.lang.String name, java.lang.String type, java.lang.String tags)
          Constructor for SequenceType with ASN.1 module, defined type, builtin or reference type, and tags parameters.
SequenceType(java.lang.String name)
          Constructor for SequenceStringType with string name parameter.
 
Method Summary
 void accept(TypeVisitor v)
          Calls the visit method of the TypeVisitor, passing itself as an argument.
 void addField(Field f)
          Adds the provided field to the list of current fields.
 Field getField(int index)
          Gets some field of interest.
 java.util.Iterator getFields()
          Gets fields.
 java.lang.String toString()
          Performs string formatting.
 
Methods inherited from class schemajic.schema.Type
createInstance, getJavaName, getModule, getName, getPackageName, getTags, getType, getTypeName, getXMLName, isChoice, isNull, isOpenType, isRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SequenceType

public SequenceType(Module module,
                    java.lang.String name,
                    java.lang.String type,
                    java.lang.String tags)
Constructor for SequenceType with ASN.1 module, defined type, builtin or reference type, and tags parameters.

Parameters:
module - the ASN.1 module where a user defined type name is specified
name - the name of a user defined type
type - a builtin or referenced type defined in the ASN.1 standards
tags - the tag class, tag number, and encoding type assigned in the ASN.1 standards to the type

SequenceType

public SequenceType(java.lang.String name)
Constructor for SequenceStringType with string name parameter.

Parameters:
name - identifier of a value of type SEQUENCE
Method Detail

addField

public void addField(Field f)
Adds the provided field to the list of current fields.

Parameters:
f - field to be added to the list

getFields

public java.util.Iterator getFields()
Gets fields.

Returns:
the current fields

getField

public Field getField(int index)
Gets some field of interest.

Parameters:
index - field of interest indicator
Returns:
the specified field

toString

public java.lang.String toString()
Performs string formatting.

Overrides:
toString in class Type
Returns:
a formatted string

accept

public void accept(TypeVisitor v)
Calls the visit method of the TypeVisitor, passing itself as an argument.

Specified by:
accept in class Type
Parameters:
v - instance of the type visitor

XCMS Toolkit


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