|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.studio.res.generator.IlrFileGenerator ilog.rules.studio.res.generator.IlrVelocityGenerator ilog.rules.studio.res.generator.IlrTraceFileGenerator ilog.rules.studio.res.generator.impl.IlrPOJOGenerator
public class IlrPOJOGenerator
This class manages templates for a Java project for RuleApps. The template generates a Java project for Ruleapps, with a bean class that executes a RuleApp on J2SE using either file or database persistence.
Nested Class Summary | |
---|---|
class |
IlrPOJOGenerator.PojoRulesetArchive
Stores a ruleset archive name and version with two lists of parameters: an in ruleset parameters list ( the in and inout ruleset parameters) an out ruleset parameters list ( the inout and out ruleset parameters) |
Nested classes/interfaces inherited from class ilog.rules.studio.res.generator.IlrFileGenerator |
---|
IlrFileGenerator.Parameter, IlrFileGenerator.RuleApp, IlrFileGenerator.RulesetArchive |
Field Summary |
---|
Fields inherited from class ilog.rules.studio.res.generator.IlrFileGenerator |
---|
contentCreated |
Constructor Summary | |
---|---|
IlrPOJOGenerator()
Constructs a new generator. |
Method Summary | |
---|---|
protected String |
getAntDefaultTarget()
|
protected String |
getAntJVMArguments()
|
protected String |
getAntRunnerClassFullyQualifiedName()
|
protected String |
getFileHeader()
Gets the header so that it can be added to the beginning of each generated file. |
protected String |
getFilePrefix()
Gets the file prefix so that it can be added to the beginning of each class and file name. |
String |
getJavaSuffixClass()
Returns the Java suffix used for interface name |
String |
getJavaSuffixClassImpl()
Returns the Java suffix used for implementation name |
String |
getNotAllowedDescription()
Returns the message to display in the 'Client Project for RuleApps' wizard if the generator is not allowed to display the reason why. |
protected String |
getPackagePrefix()
Gets the package prefix where the classes are generated. |
void |
initialize(IlrRuleAppProject ruleappProject)
Initializes the generator with the data specified in the wizard. |
boolean |
isAllowed()
Returns true if the execution server module is installed. |
Methods inherited from class ilog.rules.studio.res.generator.IlrVelocityGenerator |
---|
generateVelocityFile, generateVelocityFile, generateVelocityFileInSrc, generateVelocityFileInSrc, getGeneratedExtension, getGeneratedFileName, getGeneratedName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.wizard.IWizardNode |
---|
dispose, getExtent, isContentCreated |
Constructor Detail |
---|
public IlrPOJOGenerator()
Method Detail |
---|
public boolean isAllowed()
true
if the execution server module is installed. Returns code>false otherwise.
isAllowed
in class IlrFileGenerator
public String getNotAllowedDescription()
isAllowed()
controls if this message must be
displayed or not. The message will be displayed instead of the generator description.
getNotAllowedDescription
in class IlrFileGenerator
public void initialize(IlrRuleAppProject ruleappProject)
initialize
in class IlrFileGenerator
ruleappProject
- The RuleApp project selected in the wizard.protected String getPackagePrefix()
The default value is the RuleApp project name.
protected String getFilePrefix()
The default value is an empty string.
protected String getFileHeader()
The default value returned is an IBM copyright statement.
public String getJavaSuffixClass()
public String getJavaSuffixClassImpl()
protected String getAntDefaultTarget()
protected String getAntRunnerClassFullyQualifiedName()
protected String getAntJVMArguments()
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |