com.ibm.rules.engine.ruledef.runtime.Rule.public class IlrRule
extends java.lang.Object
implements java.io.Serializable
Instances of the IlrRule class are rules in a ruleset.
Rules are created using the parsing methods of IlrRuleset
and are then exhibited by the ruleset.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFormalComment()
Deprecated.
Returns the formal comment associated with the rule as a string.
|
java.lang.String |
getName()
Deprecated.
Returns the fully qualified name of the rule.
|
IlrPackage |
getPackage()
Deprecated.
Returns the package in which the rule is defined.
|
IlrPropertyList |
getProperties()
Deprecated.
Gets the properties of this rule.
|
java.lang.String |
getShortName()
Deprecated.
Returns the short name of the rule.
|
boolean |
hasMetadata()
Deprecated.
Tests if a rule has metadata.
|
IlrRuleFactory |
makeFactory()
Deprecated.
Builds a factory object that represents this rule.
|
IlrRuleFactory |
makeFactory(IlrPackageFactory pkgF)
Deprecated.
Builds a factory object to represent this rule.
|
void |
removeMetadata()
Deprecated.
Removes the rule's metadata.
|
public boolean hasMetadata()
Tests if a rule has metadata.
true if the rule has metadata (by default). It
returns false if the rule's metadata has been removed.public void removeMetadata()
Removes the rule's metadata. Removing a rule's metadata reduces its memory footprint. In some situations, once a rule has been consumed, its metadata is no longer useful and can be removed. A rule is consumed when the first rule engine making use of the rule has been executed, in other words, the runtime objects associated with the rule have been created. However, a rule without metadata cannot be dynamically selected in the sequential mode, it cannot be dynamically compiled and it cannot be used in static analysis.
Warning:Use this method with caution.public final java.lang.String getName()
Returns the fully qualified name of the rule.
public java.lang.String getShortName()
Returns the short name of the rule.
public final java.lang.String getFormalComment()
Returns the formal comment associated with the rule as a string.
If the rule does not have a formal comment null is
returned.
public final IlrPropertyList getProperties()
Gets the properties of this rule.
public final IlrRuleFactory makeFactory()
IlrTool methodpublic final IlrRuleFactory makeFactory(IlrPackageFactory pkgF)
Builds a factory object to represent this rule.
pkgF - An IlrRulesetFactory.public IlrPackage getPackage()
© Copyright IBM Corp. 1987, 2017