|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.appperfect.codeanalyzer.engine.rules.RuleParameter
This class represents a parameter of a configurable rule. This class allows a custom rule to fetch latest parameter values while it is evaluated. The parameter values may be specified through the Rules Manager Dialog.
Field Summary | |
static com.appperfect.codeanalyzer.engine.rules.RuleParameter.Type |
BOOLEAN
Constant indicating the data type of a Rule Parameter. |
static com.appperfect.codeanalyzer.engine.rules.RuleParameter.Type |
INTEGER
Constant indicating the data type of a Rule Parameter. |
static com.appperfect.codeanalyzer.engine.rules.RuleParameter.Type |
STRING
Constant indicating the data type of a Rule Parameter. |
Constructor Summary | |
RuleParameter(java.lang.String name,
com.appperfect.codeanalyzer.engine.rules.RuleParameter.Type type,
java.lang.Object oDefaultValue)
The constructor for a RuleParameter. |
Method Summary | |
java.lang.String |
getName()
Used internally. |
java.lang.Object |
getValue()
Allows a rule to access the current value of this Parameter during evaluation. |
boolean |
setValue(java.lang.Object value)
Used internally. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final com.appperfect.codeanalyzer.engine.rules.RuleParameter.Type INTEGER
public static final com.appperfect.codeanalyzer.engine.rules.RuleParameter.Type STRING
public static final com.appperfect.codeanalyzer.engine.rules.RuleParameter.Type BOOLEAN
Constructor Detail |
public RuleParameter(java.lang.String name, com.appperfect.codeanalyzer.engine.rules.RuleParameter.Type type, java.lang.Object oDefaultValue)
name
- the label that appears in the Rules Manager Dialog for this Rule Parameter.type
- data type of this rule either com.appperfect.common.IProductConstants.INTEGER, com.appperfect.common.IProductConstants.STRING or com.appperfect.common.IProductConstants.BOOLEAN.oDefaultValue
- initial value of this Parameter. This value is used as long as the new value is not provided through Rules Paramter Dialog.Method Detail |
public java.lang.String getName()
public java.lang.Object getValue()
public boolean setValue(java.lang.Object value)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |