Package org.drools.core.rule
Class AbstractCompositeRestriction
- java.lang.Object
-
- org.drools.core.rule.AbstractCompositeRestriction
-
- All Implemented Interfaces:
Externalizable
,Serializable
,Cloneable
,Restriction
public abstract class AbstractCompositeRestriction extends Object implements Restriction
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractCompositeRestriction.CompositeContextEntry
-
Field Summary
Fields Modifier and Type Field Description protected Restriction[]
restrictions
-
Constructor Summary
Constructors Constructor Description AbstractCompositeRestriction()
AbstractCompositeRestriction(Restriction[] restriction)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AbstractCompositeRestriction
clone()
ContextEntry
createContextEntry()
boolean
equals(Object obj)
Declaration[]
getRequiredDeclarations()
int
hashCode()
boolean
isTemporal()
Returns true if this is a temporal restrictionvoid
readExternal(ObjectInput in)
void
replaceDeclaration(Declaration oldDecl, Declaration newDecl)
A restriction may be required to replace an old declaration object by a new updated onevoid
writeExternal(ObjectOutput out)
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.core.spi.Restriction
getEvaluator, isAllowed, isAllowedCachedLeft, isAllowedCachedRight
-
-
-
-
Field Detail
-
restrictions
protected Restriction[] restrictions
-
-
Constructor Detail
-
AbstractCompositeRestriction
public AbstractCompositeRestriction()
-
AbstractCompositeRestriction
public AbstractCompositeRestriction(Restriction[] restriction)
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
getRequiredDeclarations
public Declaration[] getRequiredDeclarations()
- Specified by:
getRequiredDeclarations
in interfaceRestriction
-
replaceDeclaration
public void replaceDeclaration(Declaration oldDecl, Declaration newDecl)
Description copied from interface:Restriction
A restriction may be required to replace an old declaration object by a new updated one- Specified by:
replaceDeclaration
in interfaceRestriction
-
isTemporal
public boolean isTemporal()
Description copied from interface:Restriction
Returns true if this is a temporal restriction- Specified by:
isTemporal
in interfaceRestriction
- Returns:
-
createContextEntry
public ContextEntry createContextEntry()
- Specified by:
createContextEntry
in interfaceRestriction
-
clone
public abstract AbstractCompositeRestriction clone()
- Specified by:
clone
in interfaceRestriction
- Overrides:
clone
in classObject
-
-