|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectschemajic.schema.Type
public abstract class Type
Processing support for ASN.1 types.
| Field Summary | |
|---|---|
protected TagList |
_tags
|
| Constructor Summary | |
|---|---|
Type(Module module,
java.lang.String name,
java.lang.String type)
Constructor for Type with parameters. |
|
Type(Module module,
java.lang.String name,
java.lang.String type,
java.lang.String tags)
TODO: description goes here |
|
| Method Summary | |
|---|---|
abstract void |
accept(TypeVisitor t)
Models the abstract concept of visiting a Java type. |
java.lang.Object |
createInstance(EncodingRule rule)
Creates an instance of an ASN.1 encoding rule if the specified encoding rule is supported. |
JavaClassName |
getJavaName()
Returns the name of a Java class. |
Module |
getModule()
Returns the current ASN.1 module. |
java.lang.String |
getName()
Returns the current name. |
java.lang.String |
getPackageName()
Returns a Java package name associated with the current ASN.1 module. |
TagList |
getTags()
Returns any context specific tags associated with the encoding of a value of some ASN.1 type. |
Type |
getType()
Returns the current ASN.1 type. |
java.lang.String |
getTypeName()
Returns an ASN.1 type name. |
java.lang.String |
getXMLName()
Returns the XML element name used in an XML tag and associated with an ASN.1 type or identifier name. |
boolean |
isChoice()
Determines if a type is an ASN.1 CHOICE type. |
boolean |
isNull()
Determines if a type is the ASN.1 NULL type. |
boolean |
isOpenType()
Determines if a type is an ASN.1 "open type", which is the value of an ASN.1 type in its encoded form. |
boolean |
isRoot()
Determines if the current ASN.1 type is in the root module. |
java.lang.String |
toString()
Formats a string for an ASN.1 type definition statement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected TagList _tags
| Constructor Detail |
|---|
public Type(Module module,
java.lang.String name,
java.lang.String type)
Type with parameters.
module - ASN.1 module namename - ASN.1 type nametype - ASN.1 type
public Type(Module module,
java.lang.String name,
java.lang.String type,
java.lang.String tags)
module - name - type - tags - | Method Detail |
|---|
public Module getModule()
public boolean isRoot()
boolean true or falsepublic boolean isChoice()
CHOICE type.
boolean true or falsepublic boolean isOpenType()
boolean true or falsepublic boolean isNull()
NULL type.
boolean true or falsepublic java.lang.String getName()
public JavaClassName getJavaName()
public java.lang.String getXMLName()
public Type getType()
public java.lang.String getTypeName()
public TagList getTags()
public java.lang.String getPackageName()
public abstract void accept(TypeVisitor t)
t - the Java type to be visited
public java.lang.Object createInstance(EncodingRule rule)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
rule - the identifier of an ASN.1 encoding rule, such as "BXER" or "DER"
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||