|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wpi.cs.dsrg.xmldb.xat.common.visitorpattern.InheritableVisitor | +--edu.wpi.cs.dsrg.xmldb.xat.component.schemacleanup.SchemaCleanupVisitor
This class to do the schema cleanup.
Constructor Summary | |
SchemaCleanupVisitor()
The default SchemaCleanupVisitor constructor. |
|
SchemaCleanupVisitor(java.util.Hashtable hash_init)
The SchemaCleanupVisitor constructor. |
Method Summary | |
void |
computeSchema(XATNode root)
Compute the schema, without cutting the tree. |
void |
computeSchema(XATTree tree)
Compute the schema, without cutting the tree. |
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 schema. |
java.lang.Object |
visit(XATTree tree)
Visit a XATTree to clean up schema. |
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 |
public SchemaCleanupVisitor()
PCMVisitor
,
MinSchemaVisitor
public SchemaCleanupVisitor(java.util.Hashtable hash_init)
hash_init
- The hash table to keep the map between
XATNode and its corresponding SchemaCleanUpNode.PCMVisitor
,
MinSchemaVisitor
Method Detail |
public void computeSchema(XATTree tree)
tree
- The given XATTree.traverseTopDown
public void computeSchema(XATNode root)
root
- The root node of given XATTree.traverseTopDown
public java.lang.Object dispatch()
public java.lang.Object dispatch(java.lang.Object o)
public static boolean isDebug()
public java.lang.Object visit(XATTree tree)
tree
- The XATTree current cleaned.public java.lang.Object visit(XATNode root)
root
- The XATNode current visited.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |