org.drools.rule
Class AbstractCompositeRestriction

java.lang.Object
  extended by org.drools.rule.AbstractCompositeRestriction
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, Restriction

public abstract class AbstractCompositeRestriction
extends Object
implements Restriction

See Also:
Serialized Form

Nested Class Summary
static class AbstractCompositeRestriction.CompositeContextEntry
           
 
Field Summary
protected  Restriction[] restrictions
           
 
Constructor Summary
AbstractCompositeRestriction()
           
AbstractCompositeRestriction(Restriction[] restriction)
           
 
Method Summary
abstract  Object clone()
           
 ContextEntry createContextEntry()
           
 boolean equals(Object obj)
           
 Declaration[] getRequiredDeclarations()
           
 int hashCode()
           
 boolean isTemporal()
          Returns true if this is a temporal restriction
 void readExternal(ObjectInput in)
           
 void replaceDeclaration(Declaration oldDecl, Declaration newDecl)
          A restriction may be required to replace an old declaration object by a new updated one
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.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 interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

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

getRequiredDeclarations

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

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 interface Restriction

isTemporal

public boolean isTemporal()
Description copied from interface: Restriction
Returns true if this is a temporal restriction

Specified by:
isTemporal in interface Restriction
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

createContextEntry

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

clone

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


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