Language
Asturianu (ast)
Català (ca)
Čeština (cs)
Dansk (da)
Deutsch (de)
English [US] (en-US)
Español (es)
Esperanto (eo)
Eesti keel (et)
Euskara (eu)
Français (fr)
Gàidhlig (gd)
Galego (gl)
Italiano (it)
Lietuvių (lt)
Magyar (hu)
Nederlands (nl)
Norsk (no)
Polski (pl)
Português [do Brasil] (pt-BR)
Português [Europeu] (pt)
Română (ro)
Slovenčina (sk)
Slovenščina (sl)
Suomi (fi)
Svenska (sv)
Yкраїнська (uk)
Tiếng Việt (vi)
Türkçe (tr)
ኦሮሚኛ (om)
Հայերեն (hy)
Ελληνικά (el)
български език (bg)
Русский (ru)
Cрпски [ћирилицом] (sr)
עברית (he)
हिन्दी (hi)
ភាសាខ្មែរ (km)
தமிழ் (ta)
ภาษาไทย (th)
简体中文 (zh-CN)
正體中文 (zh-TW)
日本語 (ja)
한국어 (ko)
The Free and Open Productivity Suite
:: com :: sun :: star :: xml :: wrapper ::
unpublished
interface XXMLDocumentWrapper
Usage Restrictions
not published
Description
* Interface of XML Document Wrapper.
*
* When converting SAX events into a DOM tree, this interface is
* used to manipulate the DOM data in UNO perspective.
*
* Every lauguage has its own methods to manipulate its native DOM
* data structure, this interface provides a common method set which
* each lauguage have to implement.
*
* In another word, this interface wraps language dependant methods,
* then other component can manipulate DOM data through UNO methods.
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
Top of Page Copyright © 2013, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.