|
Drools :: Core 6.0.0.Beta5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.core.rule.constraint.QueryNameConstraint
public class QueryNameConstraint
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.drools.core.spi.Constraint |
|---|
Constraint.ConstraintType |
| Constructor Summary | |
|---|---|
QueryNameConstraint()
|
|
QueryNameConstraint(InternalReadAccessor readAccessor,
String queryName)
|
|
| Method Summary | |
|---|---|
Constraint |
clone()
Clones the constraint |
QueryNameConstraint |
cloneIfInUse()
Clone this constraints only if it is already used by a different node, otherwise returns this |
ContextEntry |
createContextEntry()
|
boolean |
equals(Object obj)
|
IndexUtil.ConstraintType |
getConstraintType()
|
FieldValue |
getField()
|
InternalReadAccessor |
getFieldExtractor()
|
AbstractHashTable.FieldIndex |
getFieldIndex()
|
String |
getQueryName()
|
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(InternalFactHandle handle,
InternalWorkingMemory workingMemory,
ContextEntry context)
|
boolean |
isIndexable(short nodeType)
|
boolean |
isTemporal()
Returns true in case this constraint is a temporal constraint |
boolean |
isUnification()
|
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. |
void |
setReadAccessor(InternalReadAccessor readAccessor)
|
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QueryNameConstraint()
public QueryNameConstraint(InternalReadAccessor readAccessor,
String queryName)
| Method Detail |
|---|
public ContextEntry createContextEntry()
createContextEntry in interface AlphaNodeFieldConstraint
public boolean isAllowed(InternalFactHandle handle,
InternalWorkingMemory workingMemory,
ContextEntry context)
isAllowed in interface AlphaNodeFieldConstraintpublic boolean isUnification()
isUnification in interface IndexableConstraintpublic boolean isIndexable(short nodeType)
isIndexable in interface IndexableConstraintpublic IndexUtil.ConstraintType getConstraintType()
getConstraintType in interface IndexableConstraintpublic FieldValue getField()
getField in interface IndexableConstraintpublic AbstractHashTable.FieldIndex getFieldIndex()
getFieldIndex in interface IndexableConstraintpublic InternalReadAccessor getFieldExtractor()
getFieldExtractor in interface IndexableConstraintpublic void setReadAccessor(InternalReadAccessor readAccessor)
setReadAccessor in interface AcceptsReadAccessorpublic Declaration[] getRequiredDeclarations()
Constraint
getRequiredDeclarations in interface Constraint
public void replaceDeclaration(Declaration oldDecl,
Declaration newDecl)
Constraint
replaceDeclaration in interface Constraintpublic Constraint clone()
Constraint
clone in interface Constraintclone in class Objectpublic String getQueryName()
public Constraint.ConstraintType getType()
Constraint
getType in interface Constraintpublic boolean isTemporal()
Constraint
isTemporal in interface Constraint
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOExceptionpublic QueryNameConstraint cloneIfInUse()
AlphaNodeFieldConstraint
cloneIfInUse in interface AlphaNodeFieldConstraintpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
Drools :: Core 6.0.0.Beta5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||