org.drools.rule.builder
Class QueryBuilder.QueryNameConstraint

java.lang.Object
  extended by org.drools.rule.builder.QueryBuilder.QueryNameConstraint
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, IndexableConstraint, Acceptor, AcceptsReadAccessor, AlphaNodeFieldConstraint, Constraint, RuleComponent
Enclosing class:
QueryBuilder

public static class QueryBuilder.QueryNameConstraint
extends Object
implements AlphaNodeFieldConstraint, IndexableConstraint, AcceptsReadAccessor, Externalizable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.drools.spi.Constraint
Constraint.ConstraintType
 
Constructor Summary
QueryBuilder.QueryNameConstraint()
           
QueryBuilder.QueryNameConstraint(InternalReadAccessor readAccessor, String queryName)
           
 
Method Summary
 Constraint clone()
           
 ContextEntry createContextEntry()
           
 boolean equals(Object obj)
           
 IndexUtil.ConstraintType getConstraintType()
           
 FieldValue getField()
           
 InternalReadAccessor getFieldExtractor()
           
 AbstractHashTable.FieldIndex getFieldIndex()
           
 Declaration[] getRequiredDeclarations()
           
 Constraint.ConstraintType getType()
           
 int hashCode()
           
 boolean isAllowed(InternalFactHandle handle, InternalWorkingMemory workingMemory, ContextEntry context)
           
 boolean isIndexable(short nodeType)
           
 boolean isTemporal()
           
 boolean isUnification()
           
 void readExternal(ObjectInput in)
           
 void replaceDeclaration(Declaration oldDecl, Declaration newDecl)
           
 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

QueryBuilder.QueryNameConstraint

public QueryBuilder.QueryNameConstraint()

QueryBuilder.QueryNameConstraint

public QueryBuilder.QueryNameConstraint(InternalReadAccessor readAccessor,
                                        String queryName)
Method Detail

createContextEntry

public ContextEntry createContextEntry()
Specified by:
createContextEntry in interface AlphaNodeFieldConstraint

isAllowed

public boolean isAllowed(InternalFactHandle handle,
                         InternalWorkingMemory workingMemory,
                         ContextEntry context)
Specified by:
isAllowed in interface AlphaNodeFieldConstraint

isUnification

public boolean isUnification()
Specified by:
isUnification in interface IndexableConstraint

isIndexable

public boolean isIndexable(short nodeType)
Specified by:
isIndexable in interface IndexableConstraint

getConstraintType

public IndexUtil.ConstraintType getConstraintType()
Specified by:
getConstraintType in interface IndexableConstraint

getField

public FieldValue getField()
Specified by:
getField in interface IndexableConstraint

getFieldIndex

public AbstractHashTable.FieldIndex getFieldIndex()
Specified by:
getFieldIndex in interface IndexableConstraint

getFieldExtractor

public InternalReadAccessor getFieldExtractor()
Specified by:
getFieldExtractor in interface IndexableConstraint

setReadAccessor

public void setReadAccessor(InternalReadAccessor readAccessor)
Specified by:
setReadAccessor in interface AcceptsReadAccessor

getRequiredDeclarations

public Declaration[] getRequiredDeclarations()
Specified by:
getRequiredDeclarations in interface Constraint

replaceDeclaration

public void replaceDeclaration(Declaration oldDecl,
                               Declaration newDecl)
Specified by:
replaceDeclaration in interface Constraint

clone

public Constraint clone()
Specified by:
clone in interface Constraint
Overrides:
clone in class Object

getType

public Constraint.ConstraintType getType()
Specified by:
getType in interface Constraint

isTemporal

public boolean isTemporal()
Specified by:
isTemporal in interface Constraint

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.