XCMS Toolkit

schemajic.schema
Class RootModule

java.lang.Object
  extended by schemajic.schema.Module
      extended by schemajic.schema.RootModule
All Implemented Interfaces:
TypeLookup

public class RootModule
extends Module
implements TypeLookup

Implements ASN.1 schema root module support.

Version:
1.00 - 2006/01/21
Author:
support@phillipgriffin.com

Field Summary
 
Fields inherited from class schemajic.schema.Module
_importList, _name, _schema, _typeList, _typeMap, _values, ROOT
 
Method Summary
 Type findType(java.lang.String name)
          Finds an ASN.1 type name in the type map using a given string name.
static RootModule getInstance()
          Returns (if not null) the current instance of the root ASN.1 module, or sets the current instance to a new root module for return to the caller.
 java.lang.String getPackageName()
          Returns the schema package name.
 TypeLookup getTypeLookup()
          Gets the current type look up.
 java.lang.String makeAbsoluteName(Type type)
          Returns the ASN.1 type name for a given ASN.1 type.
 
Methods inherited from class schemajic.schema.Module
addImport, addType, addValue, getImports, getName, getObjectIdentifierName, getSchema, getTypes, getValues, makeAbsoluteName, registerObjectIdentifier, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static final RootModule getInstance()
Returns (if not null) the current instance of the root ASN.1 module, or sets the current instance to a new root module for return to the caller.

Returns:
the current instance of the root ASN.1 module

getTypeLookup

public TypeLookup getTypeLookup()
Gets the current type look up.

Overrides:
getTypeLookup in class Module
Returns:
the current instance of type look up

findType

public Type findType(java.lang.String name)
Finds an ASN.1 type name in the type map using a given string name.

Specified by:
findType in interface TypeLookup
Parameters:
name - an ASN.1 type name
Returns:
an ASN.1 type name

makeAbsoluteName

public java.lang.String makeAbsoluteName(Type type)
Returns the ASN.1 type name for a given ASN.1 type.

Overrides:
makeAbsoluteName in class Module
Parameters:
type - file type (extension)
Returns:
complete file name including the file name extension
See Also:
Module.makeAbsoluteName(Type)

getPackageName

public java.lang.String getPackageName()
Returns the schema package name.

Overrides:
getPackageName in class Module

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.