|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.common.InstanceNotEqualsConstraint
public class InstanceNotEqualsConstraint
| Nested Class Summary | |
|---|---|
static class |
InstanceNotEqualsConstraint.InstanceNotEqualsConstraintContextEntry
|
| Nested classes/interfaces inherited from interface org.drools.spi.Constraint |
|---|
Constraint.ConstraintType |
| Constructor Summary | |
|---|---|
InstanceNotEqualsConstraint()
|
|
InstanceNotEqualsConstraint(Pattern otherPattern)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Clones the constraint |
ContextEntry |
createContextEntry()
|
boolean |
equals(Object object)
|
Pattern |
getOtherPattern()
|
Declaration[] |
getRequiredDeclarations()
Returns all the declarations required by the given constraint implementation. |
Constraint.ConstraintType |
getType()
Returns the type of the constraint, either ALPHA, BETA or UNKNOWN |
int |
hashCode()
|
boolean |
isAllowed(ContextEntry entry)
|
boolean |
isAllowedCachedLeft(ContextEntry context,
InternalFactHandle handle)
|
boolean |
isAllowedCachedRight(LeftTuple tuple,
ContextEntry context)
|
boolean |
isTemporal()
Returns true in case this constraint is a temporal constraint |
void |
readExternal(ObjectInput in)
|
void |
replaceDeclaration(Declaration oldDecl,
Declaration newDecl)
When a rule contains multiple logical branches, i.e., makes use of 'OR' CE, it is required to clone patterns and declarations for each logical branch. |
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InstanceNotEqualsConstraint()
public InstanceNotEqualsConstraint(Pattern otherPattern)
| Method Detail |
|---|
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOExceptionpublic Declaration[] getRequiredDeclarations()
Constraint
getRequiredDeclarations in interface Constraint
public void replaceDeclaration(Declaration oldDecl,
Declaration newDecl)
Constraint
replaceDeclaration in interface Constraintpublic Pattern getOtherPattern()
public boolean isTemporal()
Constraint
isTemporal in interface Constraintpublic ContextEntry createContextEntry()
createContextEntry in interface BetaNodeFieldConstraintpublic boolean isAllowed(ContextEntry entry)
public boolean isAllowedCachedLeft(ContextEntry context,
InternalFactHandle handle)
isAllowedCachedLeft in interface BetaNodeFieldConstraint
public boolean isAllowedCachedRight(LeftTuple tuple,
ContextEntry context)
isAllowedCachedRight in interface BetaNodeFieldConstraintpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectpublic Object clone()
Constraint
clone in interface Constraintclone in class Objectpublic Constraint.ConstraintType getType()
Constraint
getType in interface Constraint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||