|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.compiler.lib.JormCompilerParameterImpl
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 |
Fields inherited from interface org.objectweb.jorm.compiler.api.JormCompilerParameter |
INHERITANCE_CLASSNAME_PATTERN, INHERITANCE_PACKAGE_PATTERN |
Constructor Summary | |
JormCompilerParameterImpl()
|
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 |
getBindingEnhancedClass()
|
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()
|
java.lang.String |
getStateInheritance()
|
boolean |
isBindingAbstract()
|
boolean |
isGenerateBinding()
|
boolean |
isGeneratedPDFiles()
|
boolean |
isGeneratedWithMapperPackage()
|
boolean |
isJavac()
|
boolean |
isKeepSrc()
|
boolean |
isParseOnly()
|
boolean |
isStateGenerated()
|
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 |
setBindingAbstract(boolean bindingAbstract)
|
void |
setBindingEnhancedClass(java.lang.String bindingEnhancedClass)
|
void |
setBindingInheritance(java.lang.String bindingInheritance)
|
void |
setClassMappingInheritance(java.lang.String classMappingInheritance)
|
void |
setClasspath(PathExplorer classpath)
|
void |
setDtdLocations(java.util.ArrayList dtdLocations)
|
void |
setGenerateBinding(boolean v)
|
void |
setGeneratedPDFiles(boolean generatedPDFiles)
|
void |
setGeneratedWithMapperPackage(boolean generatedWithMapperPackage)
|
void |
setInputFiles(java.util.Collection inputFiles)
|
void |
setJavac(boolean javac)
|
void |
setKeepSrc(boolean keepSrc)
|
void |
setLogConfFile(java.lang.String logConfFile)
|
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. |
void |
setOutput(java.lang.String output)
|
void |
setProjectName(java.lang.String projectName)
|
void |
setStateGenerated(boolean v)
|
void |
setStateInheritance(java.lang.String stateInheritance)
|
void |
setVerbose(boolean verbose)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JormCompilerParameterImpl()
Method Detail |
public void print()
print
in interface JormCompilerParameter
public java.lang.String computePClassMappingInheritance(java.lang.String cn)
computePClassMappingInheritance
in interface JormCompilerParameter
cn
- The class name of the persistent class for which the
code is generated.
public java.lang.String computePBindingInheritance(java.lang.String cn)
computePBindingInheritance
in interface JormCompilerParameter
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
loadConfFile
in interface JormCompilerParameter
file
- the name of the jorm configuration file
PException
public void loadConfFile(java.io.InputStream in, java.util.Iterator knownmappers) throws PException
loadConfFile
in interface JormCompilerParameter
in
- the input stream of the jorm configuration file
PException
public PathExplorer getClasspath()
getClasspath
in interface JormCompilerParameter
public java.lang.String getOutput()
getOutput
in interface JormCompilerParameter
public boolean isVerbose()
isVerbose
in interface JormCompilerParameter
public java.util.Collection getInputFiles()
getInputFiles
in interface JormCompilerParameter
public boolean isKeepSrc()
isKeepSrc
in interface JormCompilerParameter
public java.lang.String getJavacName()
getJavacName
in interface JormCompilerParameter
public java.lang.String getProjectName()
getProjectName
in interface JormCompilerParameter
public boolean isJavac()
isJavac
in interface JormCompilerParameter
public boolean isParseOnly()
isParseOnly
in interface JormCompilerParameter
public boolean isGenerateBinding()
isGenerateBinding
in interface JormCompilerParameter
public void setGenerateBinding(boolean v)
setGenerateBinding
in interface JormCompilerParameter
public boolean isStateGenerated()
isStateGenerated
in interface JormCompilerParameter
public void setStateGenerated(boolean v)
setStateGenerated
in interface JormCompilerParameter
public java.lang.String getStateInheritance()
getStateInheritance
in interface JormCompilerParameter
public java.lang.String getBindingInheritance()
getBindingInheritance
in interface JormCompilerParameter
public java.lang.String getBindingEnhancedClass()
getBindingEnhancedClass
in interface JormCompilerParameter
public java.lang.String getClassMappingInheritance()
getClassMappingInheritance
in interface JormCompilerParameter
public boolean isBindingAbstract()
isBindingAbstract
in interface JormCompilerParameter
public java.util.ArrayList getDtdLocations()
getDtdLocations
in interface JormCompilerParameter
public boolean isGeneratedPDFiles()
isGeneratedPDFiles
in interface JormCompilerParameter
public boolean isGeneratedWithMapperPackage()
isGeneratedWithMapperPackage
in interface JormCompilerParameter
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 interface JormCompilerParameter
public void setClasspath(PathExplorer classpath)
setClasspath
in interface JormCompilerParameter
public void setOutput(java.lang.String output)
setOutput
in interface JormCompilerParameter
public void setVerbose(boolean verbose)
setVerbose
in interface JormCompilerParameter
public void setKeepSrc(boolean keepSrc)
setKeepSrc
in interface JormCompilerParameter
public void setProjectName(java.lang.String projectName)
setProjectName
in interface JormCompilerParameter
public void setJavac(boolean javac)
setJavac
in interface JormCompilerParameter
public void setStateInheritance(java.lang.String stateInheritance)
setStateInheritance
in interface JormCompilerParameter
public void setBindingInheritance(java.lang.String bindingInheritance)
setBindingInheritance
in interface JormCompilerParameter
public void setBindingEnhancedClass(java.lang.String bindingEnhancedClass)
setBindingEnhancedClass
in interface JormCompilerParameter
public void setClassMappingInheritance(java.lang.String classMappingInheritance)
setClassMappingInheritance
in interface JormCompilerParameter
public void setBindingAbstract(boolean bindingAbstract)
setBindingAbstract
in interface JormCompilerParameter
public void setDtdLocations(java.util.ArrayList dtdLocations)
setDtdLocations
in interface JormCompilerParameter
public void setGeneratedPDFiles(boolean generatedPDFiles)
setGeneratedPDFiles
in interface JormCompilerParameter
public void setInputFiles(java.util.Collection inputFiles)
setInputFiles
in interface JormCompilerParameter
public void setGeneratedWithMapperPackage(boolean generatedWithMapperPackage)
setGeneratedWithMapperPackage
in interface JormCompilerParameter
public void setLogConfFile(java.lang.String logConfFile)
setLogConfFile
in interface JormCompilerParameter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |