|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.objectweb.jorm.metainfo.lib.BasicPackage
BasicPackage is an implementation of the Package interface. This object defines a set of classes and generic classes declared in a Package 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. |
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 | |
BasicPackage(java.lang.String name,
Manager parent)
Builds a new Package object. |
|
| Method Summary | |
void |
addClass(Class aClass)
Adds an existing Class to the current Package |
void |
addCompositeName(CompositeName composite)
Adds an existing CompositeName to the current Package |
Class |
createClass(java.lang.String className)
Returns a new Class created with a class name. |
CompositeName |
createCompositeName(java.lang.String CN_Name)
Returns a new compositename identified by its name. |
Class |
getClass(java.lang.String className)
Returns a Class created with a class name. |
java.util.Collection |
getClasses()
Allows to know all the registered classes into the current schema. |
CompositeName |
getCompositeName(java.lang.String cn_Name)
Returns a compositename identified with its name. |
java.util.Collection |
getCompositeNames()
Allows to know all the registered classes into the current schema. |
Logger |
getLogger()
Returns a logger to an component that wants to log things. |
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 |
iterateCompositeName()
Allows to know all the registered compositename into the current schema. |
void |
setLogger(Logger logger)
Defines a logger object. |
void |
setLoggerFactory(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 compositeNames
protected java.lang.String name
protected MetaObject parent
public transient Logger logger
| Constructor Detail |
public BasicPackage(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 Packagepublic Class getClass(java.lang.String className)
getClass in interface PackageclassName - the string representation of the class name
public CompositeName getCompositeName(java.lang.String cn_Name)
getCompositeName in interface Packagecn_Name - the string representation of the name of the composite name.
public CompositeName createCompositeName(java.lang.String CN_Name)
createCompositeName in interface PackageCN_Name - the string representation of the name of the compositename
public java.util.Iterator iterateCompositeName()
iterateCompositeName in interface Packagepublic Class createClass(java.lang.String className)
createClass in interface PackageclassName - the string representation of the class name
public void addClass(Class aClass)
addClass in interface PackageaClass - the Class object to addpublic void addCompositeName(CompositeName composite)
addCompositeName in interface Packagecomposite - the CompositeName object to addpublic java.util.Collection getClasses()
getClasses in interface Packagepublic java.util.Collection getCompositeNames()
Package
getCompositeNames in interface Packagepublic MetaObject getParent()
getParent in interface MetaObjectpublic void setParent(MetaObject itsParent)
setParent in interface MetaObjectitsParent - the parent MetaObject of the current objectpublic void setLogger(Logger logger)
setLogger in interface Loggablelogger - the logger objectpublic void setLoggerFactory(LoggerFactory loggerFactory)
setLoggerFactory in interface LoggableloggerFactory - the LoggerFactory object to obtain a logger objectpublic Logger getLogger()
Loggable
getLogger in interface Loggablepublic LoggerFactory getLoggerFactory()
Loggable
getLoggerFactory in interface Loggable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||