|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.jsr94.rules.admin.RuleImpl
public class RuleImpl
The Drools implementation of the Rule
interface which provides
access to simple metadata for a rule. Related Rule
instances are assembled into RuleExecutionSet
s, which in
turn, can be executed by a rules engine via the RuleSession
interface.
Rule
,
Serialized FormConstructor Summary | |
---|---|
RuleImpl(Rule rule)
Creates a RuleImpl object by wrapping an
org.drools.rule.Rule object. |
Method Summary | |
---|---|
String |
getDescription()
Get a description of the rule. |
String |
getName()
Get the name of this rule. |
Object |
getProperty(Object key)
Get a user-defined or Drools-defined property. |
(package private) Rule |
getRule()
Returns the org.drools.rule.Rule that lies at the core of
this javax.rules.admin.Rule object. |
void |
setProperty(Object key,
Object value)
Set a user-defined or Drools-defined property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
RuleImpl(Rule rule)
RuleImpl
object by wrapping an
org.drools.rule.Rule
object.
rule
- the org.drools.rule.Rule
object to be wrapped.Method Detail |
---|
Rule getRule()
org.drools.rule.Rule
that lies at the core of
this javax.rules.admin.Rule
object. This method is package
private.
org.drools.rule.Rule
at the core of this object.public String getName()
getName
in interface Rule
public String getDescription()
getDescription
in interface Rule
public Object getProperty(Object key)
getProperty
in interface Rule
key
- the key to use to retrieve the property
null
public void setProperty(Object key, Object value)
setProperty
in interface Rule
key
- the key for the property valuevalue
- the value to associate with the key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |