|
|||||||||||
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.JormManager
Implementation object of the Manager interface. This interface defines methods to create or find objects which construct the meta information from the description files. This object is managed by the parser system.
Field Summary | |
protected java.util.Map |
mappingFactories
this structure defines all the mapping factories declared in the meta information manager. |
protected java.util.Map |
packages
this structure defines all declared schema in the current manager. |
protected PTypeSpace |
ptypeSpace
TBD |
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject |
debug, logger, loggerFactory, parent |
Constructor Summary | |
JormManager()
|
Method Summary | |
void |
addMappingFactory(java.lang.String mapperName,
MappingFactory factory)
Adds a mapping factory to the current metainformation manager. |
Class |
createClass(java.lang.String fqclassName)
|
CompositeName |
createCompositeName(java.lang.String fqcompositeNameName)
|
Package |
createPackage(java.lang.String schemaName)
Returns a new schema. |
protected java.util.Collection |
getChildren()
|
Class |
getClass(java.lang.String className)
searches a class into all the declared schemas and returns it. |
java.util.Collection |
getClasses()
build an iterator to iterates all classes of the meta-info |
CompositeName |
getCompositeName(java.lang.String fqcompositeNameName)
|
java.util.Collection |
getCompositeNames()
build an iterator to iterates all classes of the meta-info |
java.util.Collection |
getJormObjects()
|
java.util.Collection |
getMappingFactories()
|
MappingFactory |
getMappingFactory(java.lang.String mapperName)
Returns a mapping factory corresponding to a mapper name. |
Package |
getPackage(java.lang.String schemaName)
Returns an existing schema. |
java.util.Collection |
getPackages()
Allows to know all the declared schemas into the current metainformation manager. |
PTypeSpace |
getPTypeSpace()
TBD |
void |
init()
Initializes the current Manager. |
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 packages
protected java.util.Map mappingFactories
protected PTypeSpace ptypeSpace
Constructor Detail |
public JormManager()
Method Detail |
public void init()
init
in interface Manager
public Package getPackage(java.lang.String schemaName)
getPackage
in interface Manager
schemaName
- the name of the schema
public Package createPackage(java.lang.String schemaName)
createPackage
in interface Manager
schemaName
- the name of the schema
public java.util.Collection getPackages()
getPackages
in interface Manager
public void addMappingFactory(java.lang.String mapperName, MappingFactory factory)
addMappingFactory
in interface Manager
mapperName
- the name of the mapper (i.e: OR for rdb)factory
- the mapping factory to add to the list of
existing mapping factoriespublic MappingFactory getMappingFactory(java.lang.String mapperName)
getMappingFactory
in interface Manager
mapperName
- the name of the mapper to obtain
public java.util.Collection getMappingFactories()
getMappingFactories
in interface Manager
public PTypeSpace getPTypeSpace()
getPTypeSpace
in interface Manager
public java.util.Collection getClasses()
getClasses
in interface Manager
public java.util.Collection getCompositeNames()
getCompositeNames
in interface Manager
public java.util.Collection getJormObjects()
getJormObjects
in interface Manager
public Class getClass(java.lang.String className)
getClass
in interface Manager
className
- the name of the class to search
public Class createClass(java.lang.String fqclassName)
createClass
in interface Manager
public CompositeName getCompositeName(java.lang.String fqcompositeNameName)
getCompositeName
in interface Manager
public CompositeName createCompositeName(java.lang.String fqcompositeNameName)
createCompositeName
in interface Manager
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 |