Drools :: Core 6.0.0.Beta5

org.drools.core.reteoo
Class RuleRemovalContext

java.lang.Object
  extended by org.drools.core.reteoo.RuleRemovalContext
All Implemented Interfaces:
Externalizable, Serializable

public class RuleRemovalContext
extends Object
implements Externalizable

This context class is used during rule removal to ensure network consistency.

See Also:
Serialized Form

Nested Class Summary
static interface RuleRemovalContext.CleanupAdapter
           
 
Constructor Summary
RuleRemovalContext(org.kie.api.definition.rule.Rule rule)
           
 
Method Summary
 boolean addRemovedNode(BaseNode node)
           
 RuleRemovalContext.CleanupAdapter getCleanupAdapter()
           
 List<BaseNode> getRemovedNodes()
           
 org.kie.api.definition.rule.Rule getRule()
          Returns the reference to the rule being removed from the kbase
 InternalRuleBase getRuleBase()
           
 boolean isUnlinkEnabled()
           
 void readExternal(ObjectInput in)
           
 void setCleanupAdapter(RuleRemovalContext.CleanupAdapter cleanupAdapter)
           
 void setRuleBase(InternalRuleBase ruleBase)
           
 void setUnlinkEnabled(boolean unlinkEnabled)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleRemovalContext

public RuleRemovalContext(org.kie.api.definition.rule.Rule rule)
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

isUnlinkEnabled

public boolean isUnlinkEnabled()

setUnlinkEnabled

public void setUnlinkEnabled(boolean unlinkEnabled)

getRule

public org.kie.api.definition.rule.Rule getRule()
Returns the reference to the rule being removed from the kbase

Returns:

setCleanupAdapter

public void setCleanupAdapter(RuleRemovalContext.CleanupAdapter cleanupAdapter)

getCleanupAdapter

public RuleRemovalContext.CleanupAdapter getCleanupAdapter()

getRemovedNodes

public List<BaseNode> getRemovedNodes()

addRemovedNode

public boolean addRemovedNode(BaseNode node)

getRuleBase

public InternalRuleBase getRuleBase()

setRuleBase

public void setRuleBase(InternalRuleBase ruleBase)

Drools :: Core 6.0.0.Beta5

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