Methods' Details |
getCurrentElement
- Description
- * Gets the current element.
*
*
- Returns
- the current element in the SAX event stream
|
|
setCurrentElement
- Description
- * Sets the current element.
*
* When the current element is replaced outside of this interface, then
* uses this method can update the current element pointer.
*
*
- Parameter element
- the new current element
|
|
removeCurrentElement
void |
removeCurrentElement(); |
- Description
- * Removes the current element.
*
* When the current element is removed, then its parent element becomes
* the new current element.
|
|
isCurrent
- Description
- * Checks whether an element is the current element.
*
*
- Parameter node
- the element to be checked
*
- Returns
true if the node is the current element,
* false otherwise
|
|
isCurrentElementEmpty
boolean |
isCurrentElementEmpty(); |
- Description
- * Checks whether the current element is empty.
*
*
- Returns
true if the current element is empty,
* false otherwise
|
|
getNodeName
- Description
- * Gets the name of the element.
*
*
- Parameter node
- the element whose name will be gotten
*
- Returns
- the name of the element
|
|
clearUselessData
- Description
- * Clears all useless element in a branch of the DOM tree along the
* tree order.
*
*
- Parameter node
- the start point of the branch to clear
*
- Parameter reservedDescendants
- an array including all elements that
* need to be reserved (along their
* ancestor path)
*
- Parameter stopAtNode
- the stop element. The operation have
* to interrupt when this element is met
* during clearing
|
|
collapse
- Description
- * Collapses a tree path
*
* Each element in the ancestor path of the node will be checked,
* if this element is empty, then deletes it.
*
*
- Parameter node
- the start point of the path from where the tree
* path will be collapsed
|
|
generateSAXEvents
- Description
- * Converts a part of the DOM tree into SAX events.
*
*
- Parameter handler
- the document handler which will receive
* generated SAX events
*
- Parameter saxEventKeeperHandler
- the SAXEventKeeper connecting with
* this XMLDocumentHandler
*
- Parameter startNode
- the start point to generate SAX events
*
- Parameter endNode
- the end point where to stop generating
|
|
getTree
- Description
- * Converts the whole DOM tree into a SAX event stream.
*
*
- Parameter handler
- the document handelr which will receive the SAX event
* stream
|
|
rebuildIDLink
- Description
- * Rebuild the ID attribute in the branch starting from the particular
* element.
*
*
- Parameter node
- the root element of the branch whose ID link will be
* built
|
|
Copyright © 2010 Sun Microsystems, Inc.