|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jorm.lib.JormConfigurator
Used to hold the configuration information related to a JORM compiler instance. The configuration is loaded from the
Field Summary | |
static java.lang.String |
DEFAULT_JORM_CONFIGURATION_FILE
|
static java.lang.String |
LOGGER_NAME
|
Constructor Summary | |
JormConfigurator()
|
Method Summary | |
void |
addSubMapper(java.lang.String mn,
java.lang.String smn)
Adds this submapper to the list of the ones used for generation. |
void |
configure()
|
void |
configure(java.util.Properties p)
Configures the JORM compiler by loading information related to the different mappers supported by this instance of JORM. |
void |
configure(java.lang.String propertyfile)
Configures the JORM compiler by loading information related to the different mappers supported by this instance of JORM. |
void |
configureLog(java.lang.String propertyfile)
Configures the logger factory object with a properties object. |
java.lang.Class |
getGcmClass(java.lang.String mappername)
Gets the class name of the GenClassMapping associated with the given mapper. |
Generator |
getGenerator()
Gets the generator to be used by JORM. |
java.io.InputStream |
getGlobalJormcOptsFile()
Gets an InputStream for reading the global compiler parameters. |
java.lang.String |
getJormcOptsFile()
Gets the name to be used for the compiler options file. |
LoggerFactory |
getLoggerFactory()
Gets the logger factory associated with this instance of JORM. |
MappingDomtreeBuilder |
getMappingDomtreeBuilder(java.lang.String mappername)
Gets the MappingDomTreeBuilder object associated with the given mapper. |
MappingParser |
getMappingParser(java.lang.String mappername)
Gets the parser associated with the given mapper for mapping infos. |
MappingVerifier |
getMappingVerifier(java.lang.String mappername)
Gets the verifier associated with the given mapper. |
MappingFactory |
getMIFactory(java.lang.String mappername)
Gets the MI factory associated with the given mapper. |
Manager |
getMIManager()
Gets the MI manager to be used by JORM. |
MOPFactory |
getMOPFactory(java.lang.String mappername)
Gets the MOP factory associated with the given mapper. |
Parser |
getParser()
Gets the parser to be used by JORM. |
PMappingStructuresManager |
getSchMgr(java.lang.String mappername)
Gets the schema manager associated with the given mapper. |
java.util.Collection |
getSubMappers(java.lang.String mappername)
Gets the submappers associated with a given mapper. |
Verifier |
getVerifier()
Gets the verifier to be used by JORM. |
Writer |
getWriter()
Gets the BasicDomWriter object. |
java.util.Iterator |
knownMappers()
Lists the names of supported mappers. |
void |
removeAllMappers()
Removes all mappers from the list of the ones used for generation. |
void |
removeMapper(java.lang.String mn)
Removes this mapper from the list of the ones used for generation. |
void |
removeSubMapper(java.lang.String mn,
java.lang.String smn)
Removes this submapper from the list of the ones used for generation. |
void |
setLoggerFactory(LoggerFactory lf)
It assignes the logger factory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String LOGGER_NAME
public static final java.lang.String DEFAULT_JORM_CONFIGURATION_FILE
Constructor Detail |
public JormConfigurator()
Method Detail |
public void configure(java.lang.String propertyfile) throws PException
PException
public void configure() throws PException
PException
public void configure(java.util.Properties p)
p
- is the properties containing the jorm configurationpublic void configureLog(java.lang.String propertyfile) throws PException
propertyfile
- a properties object
PException
public java.util.Iterator knownMappers() throws PException
PException
public void setLoggerFactory(LoggerFactory lf)
lf
- public LoggerFactory getLoggerFactory() throws PException
PException
public Manager getMIManager() throws PException
PException
public Parser getParser() throws PException
PException
public Verifier getVerifier() throws PException
PException
public Generator getGenerator() throws PException
PException
public java.lang.String getJormcOptsFile() throws PException
PException
public MappingFactory getMIFactory(java.lang.String mappername) throws PException
mappername
- The name of the concerned mapper.
PException
public PMappingStructuresManager getSchMgr(java.lang.String mappername) throws PException
mappername
- The name of the concerned mapper.
PException
public java.lang.Class getGcmClass(java.lang.String mappername) throws PException
mappername
- The name of the concerned mapper.
PException
public MOPFactory getMOPFactory(java.lang.String mappername) throws PException
mappername
- The name of the concerned mapper.
PException
public java.io.InputStream getGlobalJormcOptsFile() throws PException
PException
public MappingParser getMappingParser(java.lang.String mappername) throws PException
mappername
- The name of the concerned mapper.
PException
public MappingVerifier getMappingVerifier(java.lang.String mappername) throws PException
mappername
- The name of the concerned mapper.
PException
public Writer getWriter() throws PException
PException
public MappingDomtreeBuilder getMappingDomtreeBuilder(java.lang.String mappername) throws PException
mappername
- The name of the concerned mapper.
PException
public java.util.Collection getSubMappers(java.lang.String mappername) throws PException
mappername
- The concerned mapper.
PException
public void removeMapper(java.lang.String mn)
mn
- The name of the concerned mapper.public void removeAllMappers()
public void removeSubMapper(java.lang.String mn, java.lang.String smn)
mn
- The concerned mapper.smn
- The submapper to be removed.public void addSubMapper(java.lang.String mn, java.lang.String smn)
mn
- The concerned mapper.smn
- The submapper to be added.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |