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