|
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.EnumeratedType
public class EnumeratedType
Schema for ASN.1 ENUMERATED type.
Universal class tag assignment is UNIVERSAL 10.
XML ASN.1 type name is ENUMERATED, and enumeration
values are represented as XML entities in the form
"<identifier/>".
For more information on this ASN.1 type see Java class ASN1Enumerated
| Field Summary | |
|---|---|
NamedNumberList |
_numbers
|
| Fields inherited from class schemajic.schema.Type |
|---|
_tags |
| Constructor Summary | |
|---|---|
EnumeratedType(Module module,
java.lang.String name,
java.lang.String type,
java.lang.String tags,
java.lang.String numbers)
Constructor for EnumeratedType with ASN.1 module, user defined ASN.1 type, builtin or
referenced ASN.1 type, context specific tags and named values parameters. |
|
EnumeratedType(java.lang.String name)
Gets an instance of the ASN.1 ENUMERATED type. |
|
| Method Summary | |
|---|---|
void |
accept(TypeVisitor v)
Calls the visit method of the
TypeVisitor, passing itself as
an argument. |
NamedNumber |
getNamedNumber(int value)
Gets an enumeration value of ASN.1 type ENUMERATED. |
NamedNumber |
getNamedNumber(java.lang.String name)
Gets an enumeration of ASN.1 type ENUMERATED. |
java.util.Iterator |
getNamedNumbers()
Returns the current enumerations. |
boolean |
hasNamedNumber(int value)
Determines if a value of an ASN.1 type has any enumerations. |
java.lang.String |
toString()
Returns space delimited current enumeration values. |
| 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 |
| Field Detail |
|---|
public NamedNumberList _numbers
| Constructor Detail |
|---|
public EnumeratedType(Module module,
java.lang.String name,
java.lang.String type,
java.lang.String tags,
java.lang.String numbers)
EnumeratedType 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 typenumbers - user defined enumerated values (such as "red(1)")public EnumeratedType(java.lang.String name)
ENUMERATED type.
name - an ASN.1 type name| Method Detail |
|---|
public java.util.Iterator getNamedNumbers()
public NamedNumber getNamedNumber(java.lang.String name)
ENUMERATED.
name - the name of an enumeration of ASN.1 type ENUMERATED
nullpublic NamedNumber getNamedNumber(int value)
ENUMERATED.
value - the integer value of the enumeration
nullpublic boolean hasNamedNumber(int value)
value - a value of an ASN.1 type that may or may not have enumerations
boolen true or falsepublic java.lang.String toString()
toString in class Typepublic 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 | ||||||||