|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectschemajic.schema.Type
schemajic.schema.ChoiceType
public class ChoiceType
Schema for ASN.1 CHOICE type.
There is n universal class tag assignment for this type.
XML ASN.1 type name is CHOICE.
For more information on this ASN.1 type see Java class ASN1Choice
| Field Summary |
|---|
| Fields inherited from class schemajic.schema.Type |
|---|
_tags |
| Constructor Summary | |
|---|---|
ChoiceType(Module module,
java.lang.String name,
java.lang.String type,
java.lang.String tags)
Constructor for ChoiceType with ASN.1 module, user defined ASN.1 type, builtin or
referenced ASN.1 type, context specific tags and named values parameters. |
|
ChoiceType(java.lang.String name)
Constructor for ChoiceType with ASN.1 type 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 fields. |
ASN1Value |
createFieldInstance(java.lang.String fieldName,
EncodingRule rule)
Creates an instance of an ASN.1 value for the provided type of ASN.1 encoding rules. |
Field |
getField(int index)
Gets the field indicated by the provided position in the field list. |
int |
getFieldIndex(java.lang.String fieldName)
Gets the index for a provided field. |
java.util.Iterator |
getFields()
Gets the current list of fileds. |
| 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 |
| Constructor Detail |
|---|
public ChoiceType(Module module,
java.lang.String name,
java.lang.String type,
java.lang.String tags)
ChoiceType with ASN.1 module, user defined ASN.1 type, builtin or
referenced ASN.1 type, context specific tags and named values parameters.
module - the ASN.1 module where a user defined type name is specifiedname - the name of a user defined typetype - a builtin or referenced type defined in the ASN.1 standardstags - the tag class, tag number, and encoding type assigned in the ASN.1 standards to the typepublic ChoiceType(java.lang.String name)
ChoiceType with ASN.1 type name parameter.
name - | Method Detail |
|---|
public void addField(Field f)
f - name of the field to be added to the current list of fieldspublic java.util.Iterator getFields()
iteratorpublic Field getField(int index)
index - position of a field in a list of fields
public ASN1Value createFieldInstance(java.lang.String fieldName,
EncodingRule rule)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
fieldName - the name of the field to create
null
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessExceptionpublic int getFieldIndex(java.lang.String fieldName)
fieldName - the name of the field
public void accept(TypeVisitor v)
visit method of the
TypeVisitor, passing itself as
an argument.
accept in class Typev - instance of the type visitor
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||