XCMS Toolkit

schemajic.schema
Class SetOfType

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

public class SetOfType
extends Type

Schema for ASN.1 SET OF type.

Universal class tag assignment is UNIVERSAL 17.

XML ASN.1 type name is SET_OF.

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

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

Field Summary
 TypeReference _elementType
           
 
Fields inherited from class schemajic.schema.Type
_tags
 
Constructor Summary
SetOfType(Module module, java.lang.String name, java.lang.String type, java.lang.String elementType, java.lang.String tags)
          Constructor for SetOfType with ASN.1 module, defined type, builtin or reference type, and tags parameters.
SetOfType(java.lang.String name)
          Constructor for SetOfType with string name parameter.
 
Method Summary
 void accept(TypeVisitor v)
          Calls the visit method of the TypeVisitor, passing itself as an argument.
 java.lang.Object createElementInstance(EncodingRule rule)
          Creates a new instance of the object class based on the given encoding rules
 Type getElementType()
          Gets the ASN.1 type of an element in a SET OF.
 
Methods inherited from class schemajic.schema.Type
createInstance, getJavaName, getModule, getName, getPackageName, getTags, getType, getTypeName, getXMLName, isChoice, isNull, isOpenType, isRoot, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_elementType

public TypeReference _elementType
Constructor Detail

SetOfType

public SetOfType(Module module,
                 java.lang.String name,
                 java.lang.String type,
                 java.lang.String elementType,
                 java.lang.String tags)
Constructor for SetOfType 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

SetOfType

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

Parameters:
name - identifier of a value of type SET OF
Method Detail

getElementType

public Type getElementType()
Gets the ASN.1 type of an element in a SET OF.

Returns:
the ASN.1 type of the current element

createElementInstance

public java.lang.Object createElementInstance(EncodingRule rule)
                                       throws java.lang.ClassNotFoundException,
                                              java.lang.IllegalAccessException,
                                              java.lang.InstantiationException
Creates a new instance of the object class based on the given encoding rules

Returns:
a new instance of an oject class for this type of element
Throws:
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException

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.