ilog.rules.studio.res.generator.impl
Class IlrPOJOGenerator.PojoRulesetArchive
- java.lang.Object
-
- ilog.rules.studio.res.generator.IlrFileGenerator.RulesetArchive
-
- ilog.rules.studio.res.generator.impl.IlrPOJOGenerator.PojoRulesetArchive
-
- Enclosing class:
- IlrPOJOGenerator
public class IlrPOJOGenerator.PojoRulesetArchive extends IlrFileGenerator.RulesetArchive
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)
-
-
Method Summary
Methods Modifier and Type Method and Description java.lang.String
getCallSignature()
Gets the ruleset signature to call the method.java.util.List
getOutParameter(java.lang.String var)
Deprecated.As of JRules 7.0, replaced bygetOutParameterAsString(String var)
.java.util.List<java.lang.String>
getOutParameterAsString(java.lang.String var)
Gets the helper method to store the out ruleset parameters in the result class.java.util.List
getOutParameterWithHelperMethod(java.lang.String var)
Deprecated.As of JRules 7.0, replaced bygetOutParameterWithHelperMethodAsString(String var)
.java.util.List<java.lang.String>
getOutParameterWithHelperMethodAsString(java.lang.String var)
Gets the helper method to store the out ruleset parameters in the result class.java.lang.String
getRulesetResultClassName()
Gets the ruleset class name.java.lang.String
getRulesetResultClassNameWithVersion()
Gets the ruleset class name.java.lang.String
getTaskName()
Gets the main task name if the ruleset archive contains a ruleflow.boolean
isVersionMandatory()
Returns code>true if the version is mandatory to avoid duplication in the generated names.-
Methods inherited from class ilog.rules.studio.res.generator.IlrFileGenerator.RulesetArchive
getInParameters, getInParameterSignatures, getMethodSignature, getOutParameters, getOutParameterSignatures, getRulesetClassName, getRulesetClassNameWithVersion, getRulesetDisplayName, getRulesetName, getRulesetNameWithVersion, getRulesetVersion
-
-
-
-
Method Detail
-
getRulesetResultClassNameWithVersion
public java.lang.String getRulesetResultClassNameWithVersion()
Gets the ruleset class name. The first letter is a major letter and the name is suffixed with 'Result'.- Returns:
- The result ruleset class name to generate.
-
getRulesetResultClassName
public java.lang.String getRulesetResultClassName()
Gets the ruleset class name. The first letter is a major letter and the name is suffixed with 'Result'.- Returns:
- The result ruleset class name to generate.
-
getOutParameterWithHelperMethod
public java.util.List getOutParameterWithHelperMethod(java.lang.String var)
Deprecated. As of JRules 7.0, replaced bygetOutParameterWithHelperMethodAsString(String var)
.Gets the helper method to store the out ruleset parameters in the result class.- Parameters:
var
- The name of theIlrRulesetExecutionResponse
object.- Returns:
- The list of the helper methods to get the out ruleset parameters.
-
getOutParameterWithHelperMethodAsString
public java.util.List<java.lang.String> getOutParameterWithHelperMethodAsString(java.lang.String var)
Gets the helper method to store the out ruleset parameters in the result class.- Since:
- JRules 7.0
- Parameters:
var
- The name of theIlrRulesetExecutionResponse
object.- Returns:
- The list of the helper methods to get the
Out
ruleset parameters.
-
getOutParameter
public java.util.List getOutParameter(java.lang.String var)
Deprecated. As of JRules 7.0, replaced bygetOutParameterAsString(String var)
.Gets the helper method to store the out ruleset parameters in the result class.- Parameters:
var
- The name of theIlrSessionResponse
object.- Returns:
- The list of the helper methods to get the out ruleset parameters.
-
getOutParameterAsString
public java.util.List<java.lang.String> getOutParameterAsString(java.lang.String var)
Gets the helper method to store the out ruleset parameters in the result class.- Since:
- JRules 7.0
- Parameters:
var
- The name of theIlrSessionResponse
object.- Returns:
- The list of the helper methods to get the
Out
ruleset parameters.
-
getTaskName
public java.lang.String getTaskName()
Gets the main task name if the ruleset archive contains a ruleflow. If the ruleset archive does not contain a ruleflow, null is returned.- Returns:
- The main task name if the ruleset contains a ruleflow, null otherwise.
-
isVersionMandatory
public boolean isVersionMandatory()
Returns code>true if the version is mandatory to avoid duplication in the generated names. Otherwise returns code>false. A duplication can be generated if the RuleApp contains two rulesets with the same name but with two different versions.- Returns:
- code>true if the version is mandatory, otherwise returns code>false.
-
getCallSignature
public java.lang.String getCallSignature()
Gets the ruleset signature to call the method.- Overrides:
getCallSignature
in classIlrFileGenerator.RulesetArchive
- Returns:
- The ruleset call signature.
-
-