|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.drools.semantics.java.JavaCondition
public class JavaCondition
Java expression semantics Condition.
| Field Summary | |
|---|---|
protected ConditionInvoker |
conditionInvoker
|
protected java.lang.String |
expression
|
protected java.lang.String |
name
|
protected Declaration[] |
requiredDeclarations
|
protected Rule |
rule
|
protected java.lang.String |
semanticType
|
protected java.lang.String |
thrownException
|
| Constructor Summary | |
|---|---|
protected |
JavaCondition(java.lang.String name,
java.lang.String expression,
Declaration[] requiredDeclarations,
Rule rule)
Construct. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getName()
Returns the name of the component |
Declaration[] |
getRequiredTupleMembers()
Retrieve the Declaration s required for evaluating the expression. |
SemanticRuleCompiler |
getSemanticRuleCompiler()
|
java.lang.String |
getSemanticType()
|
java.lang.String |
getText()
|
java.lang.String |
getThrownException()
|
int |
hashCode()
|
boolean |
isAllowed(Tuple tuple)
Determine if the supplied Tuple is allowed by this condition. |
boolean |
isExceptionThrown()
|
void |
setInvoker(Invoker invoker)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.String semanticType
protected final java.lang.String name
protected final java.lang.String expression
protected final Rule rule
protected final Declaration[] requiredDeclarations
protected ConditionInvoker conditionInvoker
protected final java.lang.String thrownException
| Constructor Detail |
|---|
protected JavaCondition(java.lang.String name,
java.lang.String expression,
Declaration[] requiredDeclarations,
Rule rule)
throws java.lang.Exception
expression - The expression.rule - The rule.
javax.naming.ConfigurationException - If an error occurs while attempting to perform configuration.
java.lang.Exception| Method Detail |
|---|
public java.lang.String getSemanticType()
getSemanticType in interface SemanticComponentpublic boolean isExceptionThrown()
isExceptionThrown in interface SemanticInvokeablepublic java.lang.String getThrownException()
getThrownException in interface SemanticInvokeablepublic java.lang.String getName()
SemanticComponent
getName in interface SemanticComponentpublic java.lang.String getText()
getText in interface SemanticConditionpublic Declaration[] getRequiredTupleMembers()
Declaration s required for evaluating the expression.
getRequiredTupleMembers in interface Conditionpublic SemanticRuleCompiler getSemanticRuleCompiler()
getSemanticRuleCompiler in interface SemanticRulepublic void setInvoker(Invoker invoker)
setInvoker in interface SemanticInvokeable
public boolean isAllowed(Tuple tuple)
throws ConditionException
Tuple is allowed by this condition.
isAllowed in interface Conditiontuple - The Tuple to test.
true if the Tuple passes this condition, else false.
ConditionException - if an error occurs during filtering.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||