|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jorm.compiler.lib.JormCompilerParameter
A JormCompilerParameter object is an object which manages informations read by the command line parser. These informations are needed to the compiler system to parse, generate, and compile.
Field Summary | |
boolean |
bindingAbstract
if the bindingAbstract is set to true, the binding object will be abstract, else false |
java.lang.String |
bindingInheritance
|
java.lang.String |
classMappingInheritance
|
PathExplorer |
classpath
classpath is an object which stores a set of paths (or jar files). |
java.util.ArrayList |
dtdLocations
the list of DTD locations |
boolean |
generatedPDFiles
indicates if the jorm .pd files must be generated |
boolean |
generatedWithMapperPackage
|
static java.lang.String |
INHERITANCE_CLASSNAME_PATTERN
The pattern that represents the JORM class name to be replaced into the string defining the inherited class of a either the PBinding or the PClassMapping that is generated. |
static java.lang.String |
INHERITANCE_PACKAGE_PATTERN
|
java.util.Collection |
inputFiles
a vector of input file names (.pd files) |
boolean |
javac
if the compile flag is set to true, the java sources will be compiled, if false, there will be no compilation. |
java.lang.String |
javacName
javaCompiler is the name of the javac compiler used to compile the java sources. |
boolean |
keepSrc
keep the source files or not. |
java.lang.String |
logConfFile
|
Logger |
logger
a simple logger to log |
java.lang.String |
output
path where files will be generated |
boolean |
parseOnly
if the build flag is set to true, files are generated, else false. |
java.lang.String |
projectName
projectName is the name of the project for which we generate |
boolean |
verbose
verbose flag, set by the user |
Constructor Summary | |
JormCompilerParameter()
|
Method Summary | |
java.lang.Object |
clone()
|
java.lang.String |
computePBindingInheritance(java.lang.String cn)
Computes the actual class name which the generated PBinding class must extend. |
java.lang.String |
computePClassMappingInheritance(java.lang.String cn)
Computes the actual class name which the generated PClassMapping class must extend. |
java.lang.String |
getBindingInheritance()
|
java.lang.String |
getClassMappingInheritance()
|
PathExplorer |
getClasspath()
|
java.util.ArrayList |
getDtdLocations()
|
java.util.Collection |
getInputFiles()
|
java.lang.String |
getJavacName()
|
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 |
getOutput()
|
java.lang.String |
getProjectName()
|
boolean |
isBindingAbstract()
|
boolean |
isJavac()
|
boolean |
isKeepSrc()
|
boolean |
isParseOnly()
|
boolean |
isVerbose()
|
void |
loadConfFile(java.io.InputStream in,
java.util.Iterator knownmappers)
Load a jorm configuration file. |
void |
loadConfFile(java.lang.String file,
java.util.Iterator knownmappers)
Load a jorm configuration file. |
void |
print()
Prints informations managed by the current object. |
void |
setLogger(Logger logger)
Assigns a logger to an component that wants to log things. |
void |
setLoggerFactory(LoggerFactory lf)
Assigns a logger factory that allows the creation of new loggers. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String INHERITANCE_CLASSNAME_PATTERN
public static final java.lang.String INHERITANCE_PACKAGE_PATTERN
public java.lang.String logConfFile
public PathExplorer classpath
public java.lang.String output
public boolean verbose
public java.util.Collection inputFiles
public boolean keepSrc
public java.lang.String javacName
public java.lang.String projectName
public boolean javac
public boolean parseOnly
public java.lang.String bindingInheritance
public java.lang.String classMappingInheritance
public boolean bindingAbstract
public Logger logger
public java.util.ArrayList dtdLocations
public boolean generatedPDFiles
public boolean generatedWithMapperPackage
Constructor Detail |
public JormCompilerParameter()
Method Detail |
public void print()
public java.lang.String computePClassMappingInheritance(java.lang.String cn)
cn
- The class name of the persistent class for which the
code is generated.
public java.lang.String computePBindingInheritance(java.lang.String cn)
cn
- The class name of the persistent class for which the
code is generated.
public void loadConfFile(java.lang.String file, java.util.Iterator knownmappers) throws PException
file
- the name of the jorm configuration file
PException
public void loadConfFile(java.io.InputStream in, java.util.Iterator knownmappers) throws PException
in
- the input stream of the jorm configuration file
PException
public PathExplorer getClasspath()
public java.lang.String getOutput()
public boolean isVerbose()
public java.util.Collection getInputFiles()
public boolean isKeepSrc()
public java.lang.String getJavacName()
public java.lang.String getProjectName()
public boolean isJavac()
public boolean isParseOnly()
public java.lang.String getBindingInheritance()
public java.lang.String getClassMappingInheritance()
public boolean isBindingAbstract()
public java.util.ArrayList getDtdLocations()
public void setLogger(Logger logger)
Loggable
setLogger
in interface Loggable
logger
- the logger objectpublic void setLoggerFactory(LoggerFactory lf)
Loggable
setLoggerFactory
in interface Loggable
lf
- the LoggerFactory object to obtain new loggerspublic Logger getLogger()
Loggable
getLogger
in interface Loggable
public LoggerFactory getLoggerFactory()
Loggable
getLoggerFactory
in interface Loggable
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |