|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.objectweb.jorm.comp.compiler.lib.BasicCompilerParameter
A BasicCompilerParameter 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.
| Fields inherited from interface org.objectweb.jorm.comp.compiler.api.CompilerParameter |
INHERITANCECNPATTERN |
| Constructor Summary | |
BasicCompilerParameter()
Default constructor |
|
BasicCompilerParameter(BasicClassLoader classLoader)
Deprecated. BasicClassloader is not a class loader! Use default constructor (Christophe Ney) |
|
| Method Summary | |
void |
addCPExtension(java.lang.String name,
java.lang.Object ext)
Allows to add into the hashtable object, the CommandLineParser extension objects which is identified by the @parameter name. |
boolean |
addInputFileName(java.lang.String fileName)
Adds a file name to the list of the input file names. |
void |
clearInputFileNames()
|
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. |
boolean |
existInputFileNames()
Allows to know if the input file names list is empty or not. |
boolean |
existTargetPath()
Allows to know if a target path name is defined to generate source files. |
org.objectweb.util.io.api.PathExplorer |
getClasspath()
Returns the classpath used to search files or to compile. |
java.util.Hashtable |
getCPExtension()
Allows to get the hashtable object which contains the CommandLineParser extension objects. |
java.lang.Object |
getCPExtension(java.lang.String name)
Returns an object, in most cases, it should be a com.mypackage.myobjects.CmdLineParser object. |
java.util.ArrayList |
getDtdLocations()
Returns the list of DTD locations that are specified. |
java.util.Collection |
getInputFileNames()
Allows to get a list of input file names (.pd files) |
java.lang.String |
getJavaCompiler()
Returns the java compiler sets by the programmer on the command line. |
org.objectweb.util.monolog.api.Logger |
getLogger()
Returns a logger to an component that wants to log things. |
org.objectweb.util.monolog.api.LoggerFactory |
getLoggerFactory()
Returns a logger factory that allows the creation of new loggers. |
java.lang.String |
getMapperName()
Returns the class of the mapper specified by the user. |
java.lang.String |
getMappingFactory()
Returns the name of the mapping factory used by the meta information to build mapping information. |
java.lang.String |
getMappingName()
Returns the class of the mapping specified by the user. |
Manager |
getMetaInfoManager()
|
java.lang.String |
getMetaInfoName()
Returns the class name of the meta information system. |
java.lang.String |
getOutputDirectory()
Returns the directory where files must be generated. |
java.lang.String |
getParserName()
Returns the class of the xml parser specified by the user. |
java.lang.String |
getPBindingInheritance()
Returns the class name which the generated PBinding classes must be extended. |
java.lang.String |
getPClassMappingInheritance()
Returns the class name which the generated PClassMapping classes must be extended. |
java.lang.String |
getVerifierName()
Returns the name of the class which makes the verification of the specific part of the meta-information. |
boolean |
isBindingAbstract()
Allows to know if the Binding object is abstract or not. |
boolean |
isDtdVerify()
Allows to know if the dtd is used or not to validate the xml files. |
boolean |
isGenDep()
Allows to know if the dependances must be generated or not. |
boolean |
isKeepSrc()
Allows to know if the programmer wants to keep the sources files or not. |
boolean |
isNoBuild()
Returns true if the user doesn't want to generate files. |
boolean |
isNoCompile()
Returns true if the user doesn't want that the genrated files must be compiled. |
boolean |
isVerbose()
Allows to know if the user want to know verbose informations. |
boolean |
isVerifyContext()
Verifies environment context before the parsing must be launched. |
boolean |
isVerifyMetaInfo()
Returns if the user wants or not the verification of the meta information. |
void |
loadConfFile(java.lang.String file)
Load a jorm configuration file. |
java.util.Collection |
parsePath(java.lang.String path)
Parses a path, and returns a vector of entries. |
void |
print()
Prints informations managed by the current object. |
void |
setBindingAbstract(boolean bindingAbstract)
Defines if the Binding object is defined abstract or not. |
void |
setClasspath(org.objectweb.util.io.api.PathExplorer path)
Defines the classpath for the current jorm compilation. |
void |
setDtdLocations(java.util.ArrayList al)
Assigns the list of DTD locations that are specified. |
void |
setDtdVerify(boolean verif)
Allows to set if the dtd must be used or not to validate the xml files. |
void |
setGenDep(boolean gendep)
Enables or disables the generation of the dependances. |
void |
setJavaCompiler(java.lang.String jc)
Sets the java compiler used to compile files when the generation process will be finished. |
void |
setKeepSrc(boolean keepSrc)
Sets the keep source flag. |
void |
setLogConfFile(java.lang.String filename)
It initializes the logging system with the specified logging configuration file. |
void |
setLogger(org.objectweb.util.monolog.api.Logger logger)
Defines a logger object. |
void |
setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory lf)
Defines the logger factory to obtain new logger. |
void |
setMapperName(java.lang.String mapperName)
Defines the name of the mapper used for the meta information. |
void |
setMappingFactory(java.lang.String mappingFactory)
Defines the name of the mapping factory used by the meta information to build mapping information. |
void |
setMappingName(java.lang.String mappingName)
Defines the name of the mapping. |
void |
setMetaInfoManager(Manager mngr)
Sets the class name of the meta information system. |
void |
setMetaInfoName(java.lang.String metainfo)
Sets the class name of the meta information system. |
void |
setNoBuild(boolean noBuild)
Sets if the user does not want to generate files. |
void |
setNoCompile(boolean noCompile)
Dets if the user does not want to compile generated files. |
void |
setOutputDirectory(java.lang.String outputdir)
Defines the directory where files are generated. |
void |
setParserName(java.lang.String parser)
Defines the name of the parser class which is able to parse the meta information related to a given mapping. |
void |
setPBindingInheritance(java.lang.String binding)
Defines the class name which the generated PBinding classes must be extended. |
void |
setPClassMappingInheritance(java.lang.String classmapping)
Sets the name of the generated PBinder class name. |
void |
setVerbose(boolean mode)
Sets the verbose mode. |
void |
setVerifierName(java.lang.String verifier)
Sets the name of the class which makes the verification of the specific part of the meta-information. |
void |
setVerifyContext(boolean verifyContext)
Defines if the environment context must be verified before the parsing must be launched. |
void |
setVerifyMetaInfo(boolean verify)
Sets if the user wants or not the verification of the meta information. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicCompilerParameter(BasicClassLoader classLoader)
classLader - the classloader to use to load dynamicaly classespublic BasicCompilerParameter()
| Method Detail |
public java.util.ArrayList getDtdLocations()
getDtdLocations in interface CompilerParameterpublic void setKeepSrc(boolean keepSrc)
setKeepSrc in interface CompilerParameterkeepSrc - true, the sources will not be destroyed, else false,
the sources will be removed
public void setLogConfFile(java.lang.String filename)
throws PException
CompilerParametersetLogConfFile in interface CompilerParameterorg.objectweb.jorm.comp.compiler.api.CompilerParameterfilename - is the file name of the configuration file.public boolean isKeepSrc()
isKeepSrc in interface CompilerParameterpublic void setJavaCompiler(java.lang.String jc)
setJavaCompiler in interface CompilerParameterjc - the Java compilerpublic java.lang.String getJavaCompiler()
getJavaCompiler in interface CompilerParameterpublic void setVerbose(boolean mode)
setVerbose in interface CompilerParametermode - true, verbose informations will be furnished, else false,
no informations are sent to the programmerpublic boolean isVerbose()
isVerbose in interface CompilerParameterpublic boolean addInputFileName(java.lang.String fileName)
addInputFileName in interface CompilerParameterfileName - the name of the file to add to the listpublic void clearInputFileNames()
clearInputFileNames in interface CompilerParameterpublic java.util.Collection getInputFileNames()
getInputFileNames in interface CompilerParameterpublic boolean existInputFileNames()
public boolean existTargetPath()
public java.util.Collection parsePath(java.lang.String path)
path - the path to parsepublic void print()
print in interface CompilerParameterpublic java.lang.String getOutputDirectory()
getOutputDirectory in interface CompilerParameterpublic void setOutputDirectory(java.lang.String outputdir)
setOutputDirectory in interface CompilerParameteroutputdir - the string representation of the directorypublic java.lang.String getPClassMappingInheritance()
getPClassMappingInheritance in interface CompilerParameterpublic java.lang.String computePClassMappingInheritance(java.lang.String cn)
computePClassMappingInheritance in interface CompilerParametercn - The class name of the persistent class for which the
code is generated.public void setPClassMappingInheritance(java.lang.String classmapping)
CompilerParametersetPClassMappingInheritance in interface CompilerParameterorg.objectweb.jorm.comp.compiler.api.CompilerParameterv - the class name which must be extended by the generated PBinder.
If the parameter is null, then the generated PBinder does not
inherit any class.public java.lang.String getPBindingInheritance()
getPBindingInheritance in interface CompilerParameterpublic java.lang.String computePBindingInheritance(java.lang.String cn)
computePBindingInheritance in interface CompilerParametercn - The class name of the persistent class for which the
code is generated.public void setPBindingInheritance(java.lang.String binding)
setPBindingInheritance in interface CompilerParameterbinding - the string representation of the super classpublic boolean isNoCompile()
isNoCompile in interface CompilerParameterorg.objectweb.jorm.comp.compiler.api.CompilerParameterpublic java.lang.String getParserName()
getParserName in interface CompilerParameterpublic void setParserName(java.lang.String parser)
setParserName in interface CompilerParameterparser - the name of the parser class namepublic java.lang.String getMapperName()
getMapperName in interface CompilerParameterpublic void setMapperName(java.lang.String mapperName)
setMapperName in interface CompilerParametermap - the name of the mapperpublic void setMappingName(java.lang.String mappingName)
setMappingName in interface CompilerParametermappingName - the name of the mappingpublic java.lang.String getMappingName()
getMappingName in interface CompilerParameterpublic void setClasspath(org.objectweb.util.io.api.PathExplorer path)
setClasspath in interface CompilerParameterclasspath - the string representation of the classpathpublic void setMappingFactory(java.lang.String mappingFactory)
setMappingFactory in interface CompilerParametermappingFactory - the class name of the mapping factorypublic java.lang.String getMappingFactory()
getMappingFactory in interface CompilerParameterpublic org.objectweb.util.io.api.PathExplorer getClasspath()
getClasspath in interface CompilerParameterpublic void setNoCompile(boolean noCompile)
setNoCompile in interface CompilerParameternoCompile - true, no files are compiled, else falsepublic void setNoBuild(boolean noBuild)
setNoBuild in interface CompilerParameternoBuild - true, no files are generated, else falsepublic boolean isNoBuild()
isNoBuild in interface CompilerParameterpublic void setVerifyMetaInfo(boolean verify)
setVerifyMetaInfo in interface CompilerParameterverify - if true, the global check is made, else falsepublic boolean isVerifyMetaInfo()
isVerifyMetaInfo in interface CompilerParameterpublic void setVerifierName(java.lang.String verifier)
setVerifierName in interface CompilerParameterverifier - the name of the class verifierpublic java.lang.String getVerifierName()
getVerifierName in interface CompilerParameter
public void loadConfFile(java.lang.String file)
throws PException
loadConfFile in interface CompilerParameterfile - the name of the jorm configuration filepublic java.lang.Object getCPExtension(java.lang.String name)
example: if a -myoption
getCPExtension in interface CompilerParameter
name - the name of the class with makes the extension of the
command line
public void addCPExtension(java.lang.String name,
java.lang.Object ext)
addCPExtension in interface CompilerParameterpublic java.util.Hashtable getCPExtension()
getCPExtension in interface CompilerParameterexts_ - the Hashtable object which contains the CommandLineParser
extension.public void setMetaInfoName(java.lang.String metainfo)
setMetaInfoName in interface CompilerParametermetainfo - the class name of the meta information manager
implementationpublic java.lang.String getMetaInfoName()
getMetaInfoName in interface CompilerParameterpublic void setMetaInfoManager(Manager mngr)
CompilerParametersetMetaInfoManager in interface CompilerParameterorg.objectweb.jorm.comp.compiler.api.CompilerParametermetainfo - the class name of the meta information manager
implementationpublic Manager getMetaInfoManager()
getMetaInfoManager in interface CompilerParameterpublic void setDtdVerify(boolean verif)
setDtdVerify in interface CompilerParameterverif - if true, the dtd is used to verify the xml files, else falsepublic boolean isDtdVerify()
isDtdVerify in interface CompilerParameterfalse, if the dtd is not used.
public void setGenDep(boolean gendep)
setGenDep in interface CompilerParametergendep - true, the dependances are generated, else falsepublic boolean isGenDep()
isGenDep in interface CompilerParameterpublic void setBindingAbstract(boolean bindingAbstract)
setBindingAbstract in interface CompilerParameterbindingAbstract - true, the Binding object is abstract, else falsepublic boolean isBindingAbstract()
isBindingAbstract in interface CompilerParameterpublic boolean isVerifyContext()
isVerifyContext in interface CompilerParameterpublic void setVerifyContext(boolean verifyContext)
setVerifyContext in interface CompilerParameterverifyContext - if true, the context will be checked before to use
the parser, else falsepublic void setDtdLocations(java.util.ArrayList al)
CompilerParametersetDtdLocations in interface CompilerParameterpublic void setLogger(org.objectweb.util.monolog.api.Logger logger)
setLogger in interface Loggablelogger - the logger objectpublic void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory lf)
setLoggerFactory in interface LoggableloggerFactory - the LoggerFactory object to obtain a logger objectpublic org.objectweb.util.monolog.api.Logger getLogger()
LoggablegetLogger in interface Loggableorg.objectweb.jorm.util.api.Loggablelogger - the logger objectpublic org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()
LoggablegetLoggerFactory in interface Loggableorg.objectweb.jorm.util.api.Loggableloggerfactory - the LoggerFactory object to obtain new loggers
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||