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 classAbstractCompositeRestriction.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 AbstractCompositeRestrictionclone()ContextEntrycreateContextEntry()booleanequals(Object obj)Declaration[]getRequiredDeclarations()inthashCode()booleanisTemporal()Returns true if this is a temporal restrictionvoidreadExternal(ObjectInput in)voidreplaceDeclaration(Declaration oldDecl, Declaration newDecl)A restriction may be required to replace an old declaration object by a new updated onevoidwriteExternal(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:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
getRequiredDeclarations
public Declaration[] getRequiredDeclarations()
- Specified by:
getRequiredDeclarationsin interfaceRestriction
-
replaceDeclaration
public void replaceDeclaration(Declaration oldDecl, Declaration newDecl)
Description copied from interface:RestrictionA restriction may be required to replace an old declaration object by a new updated one- Specified by:
replaceDeclarationin interfaceRestriction
-
isTemporal
public boolean isTemporal()
Description copied from interface:RestrictionReturns true if this is a temporal restriction- Specified by:
isTemporalin interfaceRestriction- Returns:
-
createContextEntry
public ContextEntry createContextEntry()
- Specified by:
createContextEntryin interfaceRestriction
-
clone
public abstract AbstractCompositeRestriction clone()
- Specified by:
clonein interfaceRestriction- Overrides:
clonein classObject
-
-