edu.wpi.cs.dsrg.xmldb.xat.component.schemacleanup
Class CompleteSchemaVisitor
java.lang.Object
|
+--edu.wpi.cs.dsrg.xmldb.xat.common.visitorpattern.InheritableVisitor
|
+--edu.wpi.cs.dsrg.xmldb.xat.component.schemacleanup.CompleteSchemaVisitor
- public class CompleteSchemaVisitor
- extends InheritableVisitor
This class is used to compute the Full Schema.
- Since:
- 1.0
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". |
protected java.util.Set |
oneElementSet(java.lang.Object o)
Constructe one element set using given object o. |
java.lang.Object |
visit(XATNode node)
Compute the complete schema for each node. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
CompleteSchemaVisitor
public CompleteSchemaVisitor()
- Default constructor of CompleteSchemaVisitor.
- Since:
- 1.0
- See Also:
ProducedVisitor
,
ConsumedVisitor
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
oneElementSet
protected java.util.Set oneElementSet(java.lang.Object o)
- Constructe one element set using given object o.
- Parameters:
o
- The object used to construct the set object.- Returns:
- Set A result Set object created.
- Since:
- 1.0
visit
public java.lang.Object visit(XATNode node)
- Compute the complete schema for each node.
The complete schema include all produced columns by its descendant
and all consumed columns by itself.
- Parameters:
node
- The XATNode computing schema for.- Returns:
- Object The schema computed for given node.
- Since:
- 1.0
- See Also:
XATNode