edu.uky.rch.ept.xmlSegmentTree
Class SegmentTree.TransformedOutputVisitor
java.lang.Object
edu.uky.rch.ept.xmlSegmentTree.AbstractSegmentTreeVisitor
edu.uky.rch.ept.xmlSegmentTree.SegmentTree.TransformedOutputVisitor
- All Implemented Interfaces:
- SegmentTreeVisitor
- Enclosing class:
- SegmentTree
- public static final class SegmentTree.TransformedOutputVisitor
- extends AbstractSegmentTreeVisitor
A visitor to output the elements of the SegmentTree to a
PrintStream as (pseudo-)XML, possibly encoding
element coordinates.
Before an opening element is output, its endpoints are given the
opportunity to transform the element, perhaps by adding attributes
or changing the tag name.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SegmentTree.TransformedOutputVisitor
public SegmentTree.TransformedOutputVisitor(PrintStream ps)
SegmentTree.TransformedOutputVisitor
public SegmentTree.TransformedOutputVisitor(PrintWriter pw)
beginElement
public void beginElement(Element e)
- Description copied from interface:
SegmentTreeVisitor
- Called for each
Element beginning at this node. Called first
for tagged elements, in decreasing order of length, then for string
elements, in decreasing order of length.
- Specified by:
beginElement in interface SegmentTreeVisitor- Specified by:
beginElement in class AbstractSegmentTreeVisitor
endElement
public void endElement(Element e)
- Description copied from interface:
SegmentTreeVisitor
- Called for each
Element ending at this node. Called first
for string elements, in increasing order of length, then for tagged
elements, in increasing order of length.
- Specified by:
endElement in interface SegmentTreeVisitor- Specified by:
endElement in class AbstractSegmentTreeVisitor
finished
public void finished()
throws TraversalException
- Description copied from interface:
SegmentTreeVisitor
- Called just before
SegmentTree.traverse() returns.
- Specified by:
finished in interface SegmentTreeVisitor- Overrides:
finished in class AbstractSegmentTreeVisitor
- Throws:
TraversalException