public class IlrTraceFileGenerator extends IlrVelocityGenerator
IlrVelocityGenerator. It uses velocity to
generate and manage the properties file, tracefilter.properties.IlrFileGenerator.Parameter, IlrFileGenerator.RuleApp, IlrFileGenerator.RulesetArchivecontentCreated, JAR_EXTENSION| Constructor and Description |
|---|
IlrTraceFileGenerator()
Constructs a new
IlrTraceFileGenerator instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
generateProjectContent(org.eclipse.jdt.core.IJavaProject javaProject)
Generates the Java project content.
|
java.lang.String |
getInfoAllRules()
Tests if the boolean filter on all rules is set.
|
java.lang.String |
getInfoAllTasks()
Tests the boolean filter on all tasks is set.
|
java.lang.String |
getInfoBoundObjectByRule()
Tests if the boolean filter on the object bound by the rules fired
before execution is set.
|
java.lang.String |
getInfoExecutionDate()
Tests if the boolean filter on execution date is set.
|
java.lang.String |
getInfoExecutionDuration()
Tests if the boolean filter on execution duration is set.
|
java.lang.String |
getInfoExecutionEvents()
Tests if the boolean filter on the environment is set.
|
java.lang.String |
getInfoNumRulesFired()
Tests the boolean filter on the number of rules fired is set.
|
java.lang.String |
getInfoNumRulesNotFired()
Tests if the boolean filter on the number of rules not fired is set.
|
java.lang.String |
getInfoNumTasksExecuted()
Tests the boolean filter on the number of tasks executed is set.
|
java.lang.String |
getInfoNumTasksNotExecuted()
Tests if the boolean filter on the number of tasks not executed is set.
|
java.lang.String |
getInfoOutputParameters()
Deprecated.
As of JRules 7.0 this filter has been removed.
|
java.lang.String |
getInfoOutputString()
Deprecated.
As of JRules 7.0 this filter has been removed.
|
java.lang.String |
getInfoRulesFired()
Deprecated.
Since JRules 7.0, this filter is deleted.
|
java.lang.String |
getInfoRulesNotFired()
Tests if the boolean filter on rules not fired is set.
|
java.lang.String |
getInfoSystemProperties()
Tests if the boolean filter on the system properties is set.
|
java.lang.String |
getInfoTasksFired()
Deprecated.
As of JRules 7.0 this filter has been removed.
|
java.lang.String |
getInfoTasksNotExecuted()
Tests if the boolean filter on tasks not executed is set.
|
java.lang.String |
getInfoWorkingMemory()
Checks if the boolean filter on working memory is set.
|
protected org.osgi.framework.Bundle |
getTemplateBundle()
Gets the bundle which contains the template.
|
protected java.lang.String |
getTemplateDirectory()
As it not used in this class, the location, that is, the absolute path,
which template paths are relative to is the empty string.
|
java.lang.String |
getWorkingMemoryFilter()
Returns a comma separated list containing the classnames to include in
the working memory filter.
|
protected org.apache.velocity.VelocityContext |
initializeContext(java.lang.Object userData,
org.apache.velocity.VelocityContext context)
Initializes a velocity context.
|
boolean |
isGeneratedTraceFile()
Tests if the trace file must be generated.
|
void |
setGeneratedTraceFile(boolean generateTraceFile)
Sets if the trace filter properties file must be generated.
|
void |
setInfoAllRules(boolean infoAllRules)
Sets the boolean filter on all rules.
|
void |
setInfoAllTasks(boolean infoAllTasks)
Sets the boolean filter on all tasks.
|
void |
setInfoBoundObjectByRule(boolean infoBoundObjectByRule)
Sets the boolean filter on the object bound by the rules fired before
execution.
|
void |
setInfoExecutionDate(boolean infoExecutionDate)
Sets the boolean filter on execution date.
|
void |
setInfoExecutionDuration(boolean infoExecutionDuration)
Sets the boolean filter on execution duration.
|
void |
setInfoExecutionEvents(boolean infoExecutionEvents)
Sets the boolean filter on the environment.
|
void |
setInfoNumRulesFired(boolean infoNumRulesFired)
Sets the boolean filter on the number of rules fired.
|
void |
setInfoNumRulesNotFired(boolean infoNumRulesNotFired)
Sets the boolean filter on the number of rules not fired.
|
void |
setInfoNumTasksExecuted(boolean infoNumTasksExecuted)
Sets the boolean filter on the number of tasks executed.
|
void |
setInfoNumTasksNotExecuted(boolean infoNumTasksNotExecuted)
Sets the boolean filter on the number of tasks not executed.
|
void |
setInfoOutputParameters(boolean infoOutputParameters)
Deprecated.
As of JRules 7.0 this filter has been removed.
|
void |
setInfoOutputString(boolean infoOutputString)
Deprecated.
Since JRules 7.0, this filter is deleted.
|
void |
setInfoRulesFired(boolean infoRulesFired)
Deprecated.
As of JRules 7.0 this filter has been removed.
|
void |
setInfoRulesNotFired(boolean infoRulesNotFired)
Sets the boolean filter on rules not fired.
|
void |
setInfoSystemProperties(boolean infoSystemProperties)
Sets the boolean filter on the system properties.
|
void |
setInfoTasksFired(boolean infoTasksFired)
Deprecated.
As of JRules 7.0 this filter has been removed.
|
void |
setInfoTasksNotExecuted(boolean infoTasksNotExecuted)
Sets the boolean filter on the tasks not executed.
|
void |
setInfoWorkingMemory(boolean infoWorkingMemory)
Sets the boolean filter on working memory.
|
void |
setWorkingMemoryFilter(java.lang.String workingMemoryFilter)
Sets the names of the classes to include in the working memory filter.
|
generateVelocityFile, generateVelocityFile, generateVelocityFileInSrc, generateVelocityFileInSrc, getGeneratedExtension, getGeneratedFileName, getGeneratedNameaddContainerEntryInClasspath, addLibraryEntryInClasspath, addProjectEntryInClasspath, addVariableEntryInClasspath, changeInClassName, changeInMethodName, completeProjectFromTemplate, copyFile, createPackage, createProjectFromTemplate, generateLaunchConfigurationFile, generateProjectContent, generateProjectContent, generateProjectContent, getCompletionWizard, getCreationWizard, getExecutionServerHome, getInParameters, getInParameters, getInParameters, getInParameters, getInParametersImports, getInParametersImports, getJavaProject, getJavaProjectNameAsClassName, getLaunchConfigurationName, getNewParameter, getNewRulesetArchive, getNotAllowedDescription, getOutParameters, getOutParameters, getOutParametersImports, getParameters, getParameters, getParametersImports, getProject, getRuleAppProject, getRulesetArchives, getRulesetArchives, getRuleStudioHome, getSignatures, getUTF8CharsetAsString, getWizard, getXOMPath, initialize, isAllowed, isJavaProject, setJavaNature, setSignaturespublic IlrTraceFileGenerator()
IlrTraceFileGenerator instance.
Any class that extends this one must declare a public default constructor
which calls this constructor. The default constructor is the only one
that can be called to create a generator.protected org.osgi.framework.Bundle getTemplateBundle()
IlrVelocityGeneratorgetTemplateBundle in class IlrVelocityGeneratorprotected java.lang.String getTemplateDirectory()
getTemplateDirectory in class IlrVelocityGeneratorpublic void generateProjectContent(org.eclipse.jdt.core.IJavaProject javaProject)
This default implementation creates a src directory in the
Java project.
generateProjectContent in class IlrVelocityGeneratorjavaProject - The destination of the Java project files.IlrFileGenerator.generateProjectContent(IJavaProject)protected org.apache.velocity.VelocityContext initializeContext(java.lang.Object userData,
org.apache.velocity.VelocityContext context)
IlrVelocityGenerator.generateVelocityFile(String,String,String,String,String,Object)
method. It retrieves the parameters to put in the velocity template.initializeContext in class IlrVelocityGeneratoruserData - The object specified in
IlrVelocityGenerator.generateVelocityFile(String,String,String,String,String,Object).context - The velocity context to fill.IlrVelocityGenerator.initializeContext(java.lang.Object, org.apache.velocity.VelocityContext)public java.lang.String getInfoAllRules()
String value true is returned.public void setInfoAllRules(boolean infoAllRules)
infoAllRules - Set to true to filter on all rules.public java.lang.String getInfoAllTasks()
String value true is returned.public void setInfoAllTasks(boolean infoAllTasks)
infoAllTasks - Set to true to filter on all tasks.public java.lang.String getInfoExecutionEvents()
String value true is returned.public void setInfoExecutionEvents(boolean infoExecutionEvents)
infoExecutionEvents - Set to true to filter on the
environment.public java.lang.String getInfoExecutionDate()
String value true is returned.public void setInfoExecutionDate(boolean infoExecutionDate)
infoExecutionDate - Set to true to filter on
execution duration.public java.lang.String getInfoExecutionDuration()
String value true is returned.public void setInfoExecutionDuration(boolean infoExecutionDuration)
infoExecutionDuration - Set to true to filter on
execution duration.public java.lang.String getInfoNumRulesFired()
String value true is returned.public void setInfoNumRulesFired(boolean infoNumRulesFired)
infoNumRulesFired - Set to true to filter the number
of rules fired.public java.lang.String getInfoNumRulesNotFired()
String value true is returned.public void setInfoNumRulesNotFired(boolean infoNumRulesNotFired)
infoNumRulesNotFired - Set to true to filter on the
number of rules not fired.public java.lang.String getInfoNumTasksExecuted()
String value true is returned.public void setInfoNumTasksExecuted(boolean infoNumTasksExecuted)
infoNumTasksExecuted - Set to true to filter on the
number of tasks executed.public java.lang.String getInfoNumTasksNotExecuted()
String value true is returned.public void setInfoNumTasksNotExecuted(boolean infoNumTasksNotExecuted)
infoNumTasksNotExecuted - Set to true to filter on
on the number of tasks not executed.public java.lang.String getInfoOutputParameters()
public void setInfoOutputParameters(boolean infoOutputParameters)
public java.lang.String getInfoOutputString()
public void setInfoOutputString(boolean infoOutputString)
public java.lang.String getInfoRulesFired()
public void setInfoRulesFired(boolean infoRulesFired)
public java.lang.String getInfoRulesNotFired()
String value true is returned.public void setInfoRulesNotFired(boolean infoRulesNotFired)
infoRulesNotFired - Set to true to filter on the the
rules not fired.public java.lang.String getInfoTasksFired()
public void setInfoTasksFired(boolean infoTasksFired)
public java.lang.String getInfoTasksNotExecuted()
String value true is returned.public void setInfoTasksNotExecuted(boolean infoTasksNotExecuted)
infoTasksNotExecuted - Set to true to filter on the
tasks not executed.public java.lang.String getInfoWorkingMemory()
String value true is returned.public void setInfoWorkingMemory(boolean infoWorkingMemory)
infoWorkingMemory - Set to true to filter on the
working memeory.public java.lang.String getWorkingMemoryFilter()
true
for this filter to be considered.public void setWorkingMemoryFilter(java.lang.String workingMemoryFilter)
setInfoWorkingMemory(boolean infoWorkingMemory) must be set to
true.workingMemoryFilter - A comma separated list containing the names
of the classes to include in the working memory filter.public boolean isGeneratedTraceFile()
true is
returned.public void setGeneratedTraceFile(boolean generateTraceFile)
generateTraceFile - Set to true to generate the trace
filters properties file.public java.lang.String getInfoBoundObjectByRule()
String value true
is returned.public void setInfoBoundObjectByRule(boolean infoBoundObjectByRule)
infoBoundObjectByRule - Set to true to activate the filter.public java.lang.String getInfoSystemProperties()
String value true is returned.public void setInfoSystemProperties(boolean infoSystemProperties)
infoSystemProperties - Set to true to activate the
filter.© Copyright IBM Corp. 1987, 2017