|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.armax.ax.devtools.generator.AXgen.AXgenSubTask
de.armax.ax.devtools.generator.AXgenCheck
Nested element for ant task AXgen
used to check a model
prior to code generation.
The model checker used by this task can be configured using ant attributes
See the documentation of getter and setter methods for details on allowed and required attributes
Constructor Summary | |
AXgenCheck(AXgen parent)
|
Method Summary | |
void |
checkError(AXmodelElement element,
java.lang.String msg)
Called whenever an error occurres. |
void |
checkFinished(int result,
int warnings,
int errors)
Called when a check finishes. |
void |
checkWarning(AXmodelElement element,
java.lang.String msg)
Called whenever a warning occurres. |
void |
execute(AXmodel model)
Implementation of the subtask. |
java.lang.Class |
getCheckerClass()
|
boolean |
isFailOnError()
|
boolean |
isFailOnWarning()
|
void |
setCheckerClass(java.lang.String checkerClass)
Setter for attribute checkerClass. |
void |
setFailOnError(boolean failOnError)
Setter for attribute failOnError Ant attribute conversion is used to convert the string attribute in the build.xml file to a boolean value. |
void |
setFailOnWarning(boolean failOnWarning)
Setter for attribute failOnWarning. |
Methods inherited from class de.armax.ax.devtools.generator.AXgen.AXgenSubTask |
getParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AXgenCheck(AXgen parent)
Method Detail |
public void setFailOnWarning(boolean failOnWarning)
Setter for attribute failOnWarning.
Ant attribute conversion is used to convert the string attribute in the build.xml file to a boolean value. See the ant documentation for details
If this is set to true, warnings will cause the build to stop. The default value is false
public boolean isFailOnWarning()
public void setFailOnError(boolean failOnError)
Setter for attribute failOnError
Ant attribute conversion is used to convert the string attribute in the build.xml file to a boolean value. See the ant documentation for details
If this is set to false, the build process will continue despite model errors. The default value is true
public boolean isFailOnError()
public void setCheckerClass(java.lang.String checkerClass)
Setter for attribute checkerClass.
This attribute must contain the fully qualified name of a class that inherits
from AXmodelChecker
.
The default value is AXojbHelper
.class
public java.lang.Class getCheckerClass()
public void execute(AXmodel model) throws org.apache.tools.ant.BuildException
AXgen.AXgenSubTask
Implementation of the subtask. This will be executed when the parent task is executed. The execution order of subtasks is the order they appear in the build.xml file
execute
in class AXgen.AXgenSubTask
org.apache.tools.ant.BuildException
public void checkWarning(AXmodelElement element, java.lang.String msg)
AXmodelCheckerListener
Called whenever a warning occurres.
checkWarning
in interface AXmodelCheckerListener
element
- the model element, were the warning occuredmsg
- a describptive messagepublic void checkError(AXmodelElement element, java.lang.String msg)
AXmodelCheckerListener
Called whenever an error occurres.
checkError
in interface AXmodelCheckerListener
element
- the model element, were the error occuredmsg
- a describptive messagepublic void checkFinished(int result, int warnings, int errors)
AXmodelCheckerListener
Called when a check finishes.
checkFinished
in interface AXmodelCheckerListener
result
- the result code. One of AXmodelChecker.RESULT_OK
, AXmodelChecker.RESULT_WARNINGS
or AXmodelChecker.RESULT_ERRORS
.warnings
- the number of warningserrors
- the number of errors
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |