|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.objectweb.jorm.metainfo.lib.BasicSchema
BasicSchema is an implementation of the Schema interface. This object defines a set of classes and generic classes declared in a Schema tag. Its parent is the Manager.
| Field Summary | |
protected java.util.Map |
classes
This structure contains all declared classes for the current schema object. |
protected java.util.Map |
compositeNames
This structure contains all declared compositename for the current schema object. |
protected java.util.Map |
genClasses
This structure contains all declared generic classes for the current schema object. |
protected java.util.Map |
hiddenClasses
This structure contains all undeclared classes for the current schema object. |
protected java.util.Map |
hiddenCompositeNames
This structure contains all undeclared compositename for the current schema object. |
org.objectweb.util.monolog.api.Logger |
logger
a simple logger to log |
protected java.lang.String |
name
The name of the schema, this name could be null if the name is not defined by the user. |
protected MetaObject |
parent
the parent object for the schema (Manager) which is a MetaObject. |
| Constructor Summary | |
BasicSchema(java.lang.String name,
Manager parent)
Builds a new Schema object. |
|
| Method Summary | |
void |
addClass(Class aClass)
Adds an existing Class to the current Schema |
void |
addCompositeName(CompositeName composite)
Adds an existing CompositeName to the current Schema |
Class |
createClass(java.lang.String className,
boolean isAbstract)
Returns a new Class created with a class name. |
CompositeName |
createCompositeName(java.lang.String CN_Name)
Returns a new compositename identified by its name. |
GenClass |
createGenClass(java.lang.String genClassName,
boolean isAbstract)
Returns a new GenClass created with a generic class name. |
Class |
createHiddenClass(java.lang.String className,
boolean isAbstract)
Returns a new Class created with a class name. |
CompositeName |
createHiddenCompositeName(java.lang.String cn_Name)
Returns a new compositename created with its name. |
Class |
getClass(java.lang.String className)
Returns a Class created with a class name. |
CompositeName |
getCompositeName(java.lang.String cn_Name)
Returns a compositename identified with its name. |
GenClass |
getGenClass(java.lang.String genClassName)
Returns a GenClass created with a generic class name. |
Class |
getHiddenClass(java.lang.String className)
Returns an hidden class. |
CompositeName |
getHiddenCompositeName(java.lang.String cn_Name)
Returns an hidden compositename. |
org.objectweb.util.monolog.api.Logger |
getLogger()
Returns a logger to an component that wants to log things. |
org.objectweb.util.monolog.api.LoggerFactory |
getLoggerFactory()
Returns a logger factory that allows the creation of new loggers. |
java.lang.String |
getName()
Returns the name of the schema. |
MetaObject |
getParent()
Allows to know the parent MetaObject of the current MetaObject. |
java.util.Iterator |
iterateClass()
Allows to know all the registered classes into the current schema. |
java.util.Iterator |
iterateCompositeName()
Allows to know all the registered compositename into the current schema. |
java.util.Iterator |
iterateGenClass()
Allows to know all the registered generic classes into the current schema. |
java.util.Iterator |
iterateHiddenClass()
Allows to know all the not yet completly registered classes into the current schema. |
java.util.Iterator |
iterateHiddenCompositeName()
Allows to know all the not yet completly registered compositename into the current schema. |
void |
moveHiddenToClass(java.lang.String className)
Moves an hidden class to a known class. |
void |
moveHiddenToCompositeName(java.lang.String cn_Name)
Moves an hidden compositename to a known compositename. |
void |
setLogger(org.objectweb.util.monolog.api.Logger logger)
Defines a logger object. |
void |
setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerFactory)
Defines the logger factory to obtain new logger. |
void |
setParent(MetaObject itsParent)
Set the parent of the current meta object if it is not yet done by the constructor of the meta object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Map classes
protected java.util.Map hiddenClasses
protected java.util.Map compositeNames
protected java.util.Map hiddenCompositeNames
protected java.util.Map genClasses
protected java.lang.String name
protected MetaObject parent
public transient org.objectweb.util.monolog.api.Logger logger
| Constructor Detail |
public BasicSchema(java.lang.String name,
Manager parent)
name - the name of the schema to createparent - the parent meta-object| Method Detail |
public java.lang.String getName()
getName in interface Schemapublic Class getClass(java.lang.String className)
getClass in interface SchemaclassName - the string representation of the class namepublic Class getHiddenClass(java.lang.String className)
getHiddenClass in interface SchemaclassName - the name of the class to searchpublic void moveHiddenToClass(java.lang.String className)
moveHiddenToClass in interface SchemaclassName - the name of the class to movepublic void moveHiddenToCompositeName(java.lang.String cn_Name)
moveHiddenToCompositeName in interface Schemacn_Name - the name of the compositename to movepublic CompositeName getCompositeName(java.lang.String cn_Name)
getCompositeName in interface Schemacn_Name - the string representation of the name of the composite name.public CompositeName getHiddenCompositeName(java.lang.String cn_Name)
getHiddenCompositeName in interface Schemacn_Name - the name of the compositename to searchpublic CompositeName createCompositeName(java.lang.String CN_Name)
createCompositeName in interface Schemacn_Name - the string representation of the name of the compositenamepublic CompositeName createHiddenCompositeName(java.lang.String cn_Name)
createHiddenCompositeName in interface Schemacn_Name - the string representation of the name of the compositenamepublic java.util.Iterator iterateCompositeName()
iterateCompositeName in interface Schemapublic java.util.Iterator iterateHiddenCompositeName()
iterateHiddenCompositeName in interface Schema
public Class createClass(java.lang.String className,
boolean isAbstract)
createClass in interface SchemaclassName - the string representation of the class nameisAbstract - true, if the current class is an abstract class,
else false, if the current class is not an abstract
classpublic void addClass(Class aClass)
addClass in interface SchemaaClass - the Class object to addpublic void addCompositeName(CompositeName composite)
addCompositeName in interface Schemacomposite - the CompositeName object to add
public Class createHiddenClass(java.lang.String className,
boolean isAbstract)
createHiddenClass in interface SchemaclassName - the string representation of the class nameisAbstract - true, if the current class is an abstract class,
else false, if the current class is not an abstract
classpublic GenClass getGenClass(java.lang.String genClassName)
getGenClass in interface SchemagenClassName - the string representation of the generic class name
public GenClass createGenClass(java.lang.String genClassName,
boolean isAbstract)
createGenClass in interface SchemagenClassName - the string representation of the generic class nameisAbstract - true, if the generic class is abstract, else false,
if the generic class is not abstractpublic java.util.Iterator iterateClass()
iterateClass in interface Schemapublic java.util.Iterator iterateGenClass()
iterateGenClass in interface Schemapublic java.util.Iterator iterateHiddenClass()
iterateHiddenClass in interface Schemapublic MetaObject getParent()
getParent in interface MetaObjectpublic void setParent(MetaObject itsParent)
setParent in interface MetaObjectitsParent - the parent MetaObject of the current objectpublic void setLogger(org.objectweb.util.monolog.api.Logger logger)
setLogger in interface Loggablelogger - the logger objectpublic void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerFactory)
setLoggerFactory in interface LoggableloggerFactory - the LoggerFactory object to obtain a logger objectpublic org.objectweb.util.monolog.api.Logger getLogger()
LoggablegetLogger in interface Loggableorg.objectweb.jorm.util.api.Loggablelogger - the logger objectpublic org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()
LoggablegetLoggerFactory in interface Loggableorg.objectweb.jorm.util.api.Loggableloggerfactory - the LoggerFactory object to obtain new loggers
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||