|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Rule
This interface represents one rule within either a ruleset or a decision table. The rule may
be a hard-coded rule or may be a rule instance created from a rule template. A hard-coded rule
is represented by an instance of this interface; there is no sub-interface for a hard-coded
rule. A rule that was created from a template is represented by an instance of
TemplateInstanceRule
.
A rule has a name and a user presentation string. The user presentation string specifies how the rule should be presented to the end user.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Method Summary | |
---|---|
java.lang.String |
getDescription()
Get the description associated with this rule. |
java.lang.String |
getDisplayName()
Get the display name for this rule. |
java.lang.String |
getExpandedUserPresentation()
Get the user presentation for this rule with any placeholders for template parameters filled in with the actual value of the parameter. |
java.lang.String |
getName()
Get the name of this rule. |
java.lang.String |
getUserPresentation()
Get the user presentation for this rule. |
boolean |
isDisplayNameSynchronizedToName()
Check to see if the display name is synchronized to the name for this rule. |
void |
setDescription(java.lang.String newDescription)
Set the description associated with this rule. |
void |
setDisplayName(java.lang.String newDisplayName)
Set the display name for this rule. |
void |
setDisplayNameIsSynchronizedToName(boolean newDisplayNameIsSynchronizedToName)
Change the value of the flag that determines whether or not the display name is synchronized to the name for this rule. |
Methods inherited from interface com.ibm.wbiserver.brules.mgmt.BusinessRuleValidateable |
---|
validate |
Methods inherited from interface com.ibm.wbiserver.brules.mgmt.BusinessRuleChangeDetector |
---|
hasChanges |
Field Detail |
---|
static final java.lang.String COPYRIGHT
Method Detail |
---|
java.lang.String getName()
java.lang.String getDisplayName()
isDisplayNameSynchronizedToName
and setDisplayName
for more
information.
void setDisplayName(java.lang.String newDisplayName)
isDisplayNameSynchronizedToName
),
then changes to the display name are not allowed. This is because the name field takes
precedence over the display name and the name field cannot be changed. In this case
a DisplayNameNotChangeableException
is thrown.
newDisplayName
- The new display name for this rule. May be null.
DisplayNameNotChangeableException
- if the display name for this rule
is synchronized to the name.
ChangesNotAllowedException
- if changes to this object are temporarily
disallowed while other changes are being published.boolean isDisplayNameSynchronizedToName()
true
if the display name is synchronized to the name for this rule;
otherwise false
.void setDisplayNameIsSynchronizedToName(boolean newDisplayNameIsSynchronizedToName)
When this method is called with a value of true
, the display name is
automatically changed to have the same value as the name.
newDisplayNameIsSynchronizedToName
- The new value for the flag that determines
whether or not the display name is synchronized to the name for this rule.
ChangesNotAllowedException
- if changes to this object are temporarily
disallowed while other changes are being published.java.lang.String getDescription()
void setDescription(java.lang.String newDescription)
newDescription
- The new description to be associated with this rule.
May be null.
ChangesNotAllowedException
- if changes to this object are temporarily
disallowed while other changes are being published.java.lang.String getUserPresentation()
java.lang.String getExpandedUserPresentation()
getUserPresentation
method.
If this rule is based on a template, then all of the template parameter placeholders
(denoted by curly braces, '{' and '}') will be filled in with the actual parameter
values specified in this template instance.
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |