|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The CompilerParameter interface defines methods to set an get informations read by the command line parser. These informations are needed to the compiler system to parse, generate, and compile.
| Field Summary | |
static java.lang.String |
INHERITANCECNPATTERN
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. |
| 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. |
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. |
java.lang.String |
getMapperName()
Returns the mapper name 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 name 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 class must extend. |
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 generated 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)
Loads a jorm configuration file. |
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 |
setMapperName(java.lang.String mapperName)
Defines the name of the mapper. |
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)
Sets if the user does not want to compile generated files. |
void |
setOutputDirectory(java.lang.String directory)
Defines the output directory for the generation of the java files. |
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 classname)
Sets the generated PBinding class name. |
void |
setPClassMappingInheritance(java.lang.String v)
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 interface org.objectweb.jorm.util.api.Loggable |
getLogger, getLoggerFactory, setLogger, setLoggerFactory |
| Field Detail |
public static final java.lang.String INHERITANCECNPATTERN
| Method Detail |
public java.util.ArrayList getDtdLocations()
public void setDtdLocations(java.util.ArrayList al)
public java.lang.String getOutputDirectory()
public void setOutputDirectory(java.lang.String directory)
directory - the name of the output directorypublic java.lang.String getPClassMappingInheritance()
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 getPBindingInheritance()
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 setPClassMappingInheritance(java.lang.String v)
v - 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 void setPBindingInheritance(java.lang.String classname)
classname - the class name which must be extended by the generated
PBinding. If the parameter is null, then the generated
PBinding does not inherit any class.public boolean isNoCompile()
public boolean isNoBuild()
public java.lang.String getParserName()
public java.lang.String getMapperName()
public java.lang.String getMappingName()
public void setKeepSrc(boolean keepSrc)
keepSrc - true, the sources will not be destroyed, else false,
the sources will be removedpublic boolean isKeepSrc()
public void setJavaCompiler(java.lang.String jc)
jc - the Java compilerpublic java.lang.String getJavaCompiler()
public void setVerbose(boolean mode)
mode - true, verbose informations will be furnished, else false,
no informations are sent to the programmerpublic boolean isVerbose()
public boolean addInputFileName(java.lang.String fileName)
fileName - the name of the file to add to the listpublic void clearInputFileNames()
public java.util.Collection getInputFileNames()
public void print()
public void setClasspath(org.objectweb.util.io.api.PathExplorer path)
classpath - the string representation of the classpathpublic org.objectweb.util.io.api.PathExplorer getClasspath()
public void setMapperName(java.lang.String mapperName)
mapperName - the name of the mapperpublic void setMappingName(java.lang.String mappingName)
mappingName - the name of the mappingpublic void setMappingFactory(java.lang.String mappingFactory)
mappingFactory - the name of the mapping factory classpublic java.lang.String getMappingFactory()
public void setParserName(java.lang.String parser_)
parser_ - the name of the parserpublic void setNoCompile(boolean noCompile)
noCompile - true, no files are compiled, else falsepublic void setNoBuild(boolean nobuild)
noBuild - true, no files are generated, else false
public void loadConfFile(java.lang.String file)
throws PException
file - the name of the jorm configuration filepublic void setVerifyMetaInfo(boolean verify)
verify - if true, the global check is made, else falsepublic boolean isVerifyMetaInfo()
public void setVerifierName(java.lang.String verifier)
verifier - the name of the class verifierpublic java.lang.String getVerifierName()
public java.lang.Object getCPExtension(java.lang.String name)
example: if a -myoption
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)
public java.util.Hashtable getCPExtension()
exts_ - the Hashtable object which contains the CommandLineParser
extensionpublic void setMetaInfoName(java.lang.String metainfo)
metainfo - the class name of the meta information manager
implementationpublic void setMetaInfoManager(Manager mngr)
metainfo - the class name of the meta information manager
implementationpublic java.lang.String getMetaInfoName()
public Manager getMetaInfoManager()
public void setDtdVerify(boolean verif)
verif - if true, the dtd is used to verify the xml files, else falsepublic boolean isDtdVerify()
false, if the dtd is not used.
public void setGenDep(boolean gendep)
gendep - true, the dependances are generated, else falsepublic boolean isGenDep()
public void setBindingAbstract(boolean bindingAbstract)
bindingAbstract - true, the Binding object is abstract, else falsepublic boolean isBindingAbstract()
public boolean isVerifyContext()
public void setVerifyContext(boolean verifyContext)
verifyContext - if true, the context will be checked before to use
the parser, else false
public void setLogConfFile(java.lang.String filename)
throws PException
filename - is the file name of the configuration file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||