|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.metainfo.lib.BasicMetaObject
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. |
protected java.lang.String |
name
The name of the schema, this name could be null if the name is not defined by the user. |
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject |
debug, logger, loggerFactory, parent |
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. |
protected java.util.Collection |
getChildren()
|
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. |
java.lang.String |
getName()
Returns the name of the schema. |
java.util.Iterator |
iterateCompositeName()
Allows to know all the registered compositename into the current schema. |
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject |
getLogger, getLoggerFactory, getManager, getParent, setLogger, setLoggerFactory, setLoggingOnChild, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject |
getParent, setParent |
Field Detail |
protected java.util.Map classes
protected java.util.Map compositeNames
protected java.lang.String name
Constructor Detail |
public BasicPackage(java.lang.String name, Manager parent)
name
- the name of the schema to createparent
- the parent meta-objectMethod Detail |
public java.lang.String getName()
getName
in interface Package
public Class getClass(java.lang.String className)
getClass
in interface Package
className
- the string representation of the class name
public CompositeName getCompositeName(java.lang.String cn_Name)
getCompositeName
in interface Package
cn_Name
- the string representation of the name of the composite name.
public CompositeName createCompositeName(java.lang.String CN_Name)
createCompositeName
in interface Package
CN_Name
- the string representation of the name of the compositename
public java.util.Iterator iterateCompositeName()
iterateCompositeName
in interface Package
public Class createClass(java.lang.String className)
createClass
in interface Package
className
- the string representation of the class name
public void addClass(Class aClass)
addClass
in interface Package
aClass
- the Class object to addpublic void addCompositeName(CompositeName composite)
addCompositeName
in interface Package
composite
- the CompositeName object to addpublic java.util.Collection getClasses()
getClasses
in interface Package
public java.util.Collection getCompositeNames()
Package
getCompositeNames
in interface Package
protected java.util.Collection getChildren()
getChildren
in class BasicMetaObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |