edu.wpi.cs.dsrg.xmldb.xat.component.xatrewrite
Class ReWriteResult

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.component.xatrewrite.ReWriteResult

public class ReWriteResult
extends java.lang.Object

This Class is used to rewrite the XAT using position rules.

 Result object created when a ReWriteRule is evaluated
 The parent and child node refer to the two nodes that were evaluated in
 the equivalance rule.  
 

Since:
1.0
See Also:
ReWriteRules, ReWriteNavigationRules, ReWriteOrderByRules

Constructor Summary
ReWriteResult()
          Default ReWriteResult constructor.
 
Method Summary
 boolean isDeleteChildNode()
          Get the value of attribute deleteChildNode.
 boolean isDeleteParentNode()
          Get the value of attribute deleteParentNode.
 boolean isFinalPosition()
          Get the value of attribute finalPosition.
 boolean isMoved()
          Get the value of attribute moved.
 boolean isSwapped()
          Get the value of attribute swapped.
 void setDeleteChildNode(boolean newDeleteChildNode)
          Set the attribute of deleteChildNode.
 void setDeleteParentNode(boolean newDeleteNode)
          Set the attribute of deleteParentNode.
 void setFinalPosition(boolean newPushedDown)
          Set the attribute of finalPosition.
 void setMoved(boolean newMoved)
          Set the attribute of moved.
 void setSwapped(boolean newSuccessful)
          Set the attribute of swapped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReWriteResult

public ReWriteResult()
Default ReWriteResult constructor.
Since:
1.0
Method Detail

isDeleteChildNode

public boolean isDeleteChildNode()
Get the value of attribute deleteChildNode.
Returns:
boolean Indicate whether the child node should be deleted.
Since:
1.0

isDeleteParentNode

public boolean isDeleteParentNode()
Get the value of attribute deleteParentNode.
Returns:
boolean Indicate whether the parent node should be deleted.
Since:
1.0

isFinalPosition

public boolean isFinalPosition()
Get the value of attribute finalPosition.
Returns:
boolean Indicate if the node is in its final position after the rule was executed.
Since:
1.0

isMoved

public boolean isMoved()
Get the value of attribute moved.
Returns:
boolean Indicate if the parent is moved.
Since:
1.0

isSwapped

public boolean isSwapped()
Get the value of attribute swapped.
Returns:
boolean Indicate if the nodes were swapped.
Since:
1.0

setDeleteChildNode

public void setDeleteChildNode(boolean newDeleteChildNode)
Set the attribute of deleteChildNode.
Parameters:
newDeleteChildNode - Indicate whether the child node should be deleted.
Returns:
void
Since:
1.0

setDeleteParentNode

public void setDeleteParentNode(boolean newDeleteNode)
Set the attribute of deleteParentNode.
Parameters:
newDeleteNode - Indicate whether the parent node should be deleted.
Returns:
void
Since:
1.0

setFinalPosition

public void setFinalPosition(boolean newPushedDown)
Set the attribute of finalPosition.
Parameters:
newPushedDown - Indicate whether the parent node in its final postion
Returns:
void
Since:
1.0

setMoved

public void setMoved(boolean newMoved)
Set the attribute of moved.
Parameters:
newMoved - Indicate whether the parent node was moved.
Returns:
void
Since:
1.0

setSwapped

public void setSwapped(boolean newSuccessful)
Set the attribute of swapped.
Parameters:
newSuccessful - Indicate whether the parent and child nodes should be swapped.
Returns:
void
Since:
1.0