|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectschemajic.schema.Module
public class Module
Processes the ASN.1 modules that constitute an ASN.1 schema.
| Field Summary | |
|---|---|
protected java.util.List |
_importList
|
protected ModuleName |
_name
|
protected Schema |
_schema
|
protected java.util.List |
_typeList
|
protected java.util.Map |
_typeMap
|
protected java.util.List |
_values
|
static Module |
ROOT
|
| Constructor Summary | |
|---|---|
Module(Schema schema,
java.lang.String name)
Constructor for Module with schema and module name parameters. |
|
| Method Summary | |
|---|---|
void |
addImport(Import i)
Adds an import statement item to an import item list. |
void |
addType(Type t)
Adds an ASN.1 type to a type list. |
void |
addValue(NamedValue v)
Adds a value to a set of values. |
java.util.Iterator |
getImports()
Returns a list of ASN.1 module IMPORTS. |
ModuleName |
getName()
Returns the current ASN.1 module name. |
java.lang.String |
getObjectIdentifierName(ASN1ObjectIdentifier oid)
Look up the ASN.1 identifier for a particular OBJECT IDENTIFIER in this module. |
java.lang.String |
getPackageName()
Returns the Java package named for the current schema. |
Schema |
getSchema()
Returns the current schema. |
TypeLookup |
getTypeLookup()
Returns the current schema. |
java.util.Iterator |
getTypes()
Returns a list of types. |
java.util.Iterator |
getValues()
Returns one or more values. |
java.lang.String |
makeAbsoluteName(java.lang.String type)
Cteates a complete file name given the file name extension. |
java.lang.String |
makeAbsoluteName(Type type)
Cteates a complete file name given only the file name. |
void |
registerObjectIdentifier(java.lang.String name,
ASN1ObjectIdentifier oid)
Puts the named OID in a map. |
java.lang.String |
toString()
Returns a formatted string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Module ROOT
protected Schema _schema
protected ModuleName _name
protected java.util.List _importList
protected java.util.Map _typeMap
protected java.util.List _typeList
protected java.util.List _values
| Constructor Detail |
|---|
public Module(Schema schema,
java.lang.String name)
Module with schema and module name parameters.
schema - an ASN.1 schema (one or more ASN.1 modules)name - an ASN.1 module name| Method Detail |
|---|
public ModuleName getName()
public void addImport(Import i)
i - item to import into an ASN.1 modulepublic void addType(Type t)
t - an ASN.1 typepublic java.util.Iterator getImports()
IMPORTS.
public java.util.Iterator getTypes()
public void addValue(NamedValue v)
v - a value to be added to a set of valuespublic java.util.Iterator getValues()
public TypeLookup getTypeLookup()
public java.lang.String makeAbsoluteName(Type type)
type - file type (extension)
public java.lang.String makeAbsoluteName(java.lang.String type)
type - file type (extension)
public java.lang.String getPackageName()
public void registerObjectIdentifier(java.lang.String name,
ASN1ObjectIdentifier oid)
name - the name of an ASN.1 information object identifier (OID)oid - an ASN.1 OIDpublic java.lang.String getObjectIdentifierName(ASN1ObjectIdentifier oid)
oid - an ASN.1 information object identifier
public java.lang.String toString()
toString in class java.lang.Objectpublic Schema getSchema()
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||