public class XpathConstraint extends MutableTypeConstraint
| Modifier and Type | Class and Description |
|---|---|
static class |
XpathConstraint.XpathChunk |
static class |
XpathConstraint.XpathDataProvider |
Constraint.ConstraintType| Constructor and Description |
|---|
XpathConstraint() |
| Modifier and Type | Method and Description |
|---|---|
XpathConstraint.XpathChunk |
addChunck(Class<?> clazz,
String field,
int index,
boolean iterate) |
XpathConstraint |
clone()
Clones the constraint
|
ContextEntry |
createContextEntry() |
LinkedList<XpathConstraint.XpathChunk> |
getChunks() |
Declaration |
getDeclaration() |
InternalReadAccessor |
getReadAccessor() |
Declaration[] |
getRequiredDeclarations()
Returns all the declarations required by the given
constraint implementation.
|
Class<?> |
getResultClass() |
Declaration |
getXpathStartDeclaration() |
boolean |
isAllowed(InternalFactHandle handle,
InternalWorkingMemory workingMemory,
ContextEntry context) |
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.
|
void |
setDeclaration(Declaration declaration) |
void |
setXpathStartDeclaration(Declaration xpathStartDeclaration) |
void |
writeExternal(ObjectOutput out) |
cloneIfInUse, getType, setInUse, setTypepublic XpathConstraint.XpathChunk addChunck(Class<?> clazz, String field, int index, boolean iterate)
public Declaration[] getRequiredDeclarations()
Constraintpublic void replaceDeclaration(Declaration oldDecl, Declaration newDecl)
Constraintpublic XpathConstraint clone()
Constraintclone in interface Constraintclone in class MutableTypeConstraintpublic boolean isTemporal()
Constraintpublic boolean isAllowedCachedLeft(ContextEntry context, InternalFactHandle handle)
public boolean isAllowedCachedRight(LeftTuple tuple, ContextEntry context)
public ContextEntry createContextEntry()
public boolean isAllowed(InternalFactHandle handle, InternalWorkingMemory workingMemory, ContextEntry context)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class MutableTypeConstraintIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class MutableTypeConstraintIOExceptionpublic LinkedList<XpathConstraint.XpathChunk> getChunks()
public Class<?> getResultClass()
public Declaration getDeclaration()
public void setDeclaration(Declaration declaration)
public InternalReadAccessor getReadAccessor()
public Declaration getXpathStartDeclaration()
public void setXpathStartDeclaration(Declaration xpathStartDeclaration)
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.