edu.wpi.cs.dsrg.xmldb.xat.component.schemacleanup
Class TreeCleanupVisitor

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.common.visitorpattern.InheritableVisitor
        |
        +--edu.wpi.cs.dsrg.xmldb.xat.component.schemacleanup.TreeCleanupVisitor

public class TreeCleanupVisitor
extends InheritableVisitor

This class is used to cleanup the tree with cutting.

Since:
1.0

Constructor Summary
TreeCleanupVisitor()
          The default TreeCleanupVisitor constructor.
TreeCleanupVisitor(java.util.Hashtable hash_init)
          The TreeCleanupVisitor constructor.
 
Method Summary
 java.lang.Object dispatch()
          To visit a null object.
 java.lang.Object dispatch(java.lang.Object o)
          To visit any object.
static boolean isDebug()
          Get the value of the propertity "DEBUG_SchemaCleanUp".
 java.lang.Object visit(XATNode root)
          Visit a XATNode to clean up tree.
 java.lang.Object visit(XATTree tree)
          Visit a XATTree to clean up tree.
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.visitorpattern.InheritableVisitor
getAncestors, getMethod, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeCleanupVisitor

public TreeCleanupVisitor()
The default TreeCleanupVisitor constructor.
Since:
1.0
See Also:
PCMVisitor, CutVisitor

TreeCleanupVisitor

public TreeCleanupVisitor(java.util.Hashtable hash_init)
The TreeCleanupVisitor constructor.
Parameters:
hash_init - The hash table to keep the map between XATNode and its corresponding SchemaCleanUpNode.
Since:
1.0
See Also:
PCMVisitor, CutVisitor
Method Detail

dispatch

public java.lang.Object dispatch()
Description copied from class: InheritableVisitor
To visit a null object.
Overrides:
dispatch in class InheritableVisitor

dispatch

public java.lang.Object dispatch(java.lang.Object o)
Description copied from class: InheritableVisitor
To visit any object.
Overrides:
dispatch in class InheritableVisitor

isDebug

public static boolean isDebug()
Get the value of the propertity "DEBUG_SchemaCleanUp".
Returns:
boolean True: With debug information. False: No debug information.
Since:
1.0

visit

public java.lang.Object visit(XATTree tree)
Visit a XATTree to clean up tree.
Parameters:
tree - The XATTree current cleaned.
Returns:
Object
Since:
1.0

visit

public java.lang.Object visit(XATNode root)
Visit a XATNode to clean up tree.
Parameters:
root - The XATNode current visited.
Returns:
Object
Since:
1.0