org.drools.rule.builder
Class QueryBuilder.QueryNameConstraint
java.lang.Object
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
QueryBuilder.QueryNameConstraint
public QueryBuilder.QueryNameConstraint()
QueryBuilder.QueryNameConstraint
public QueryBuilder.QueryNameConstraint(InternalReadAccessor readAccessor,
String queryName)
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.