org.dom4j
public interface ElementPath
Version: $Revision: 1.6 $
Method Summary | |
---|---|
void | addHandler(String path, ElementHandler handler)
Adds the ElementHandler to be called when the specified
path is encounted. |
Element | getCurrent()
DOCUMENT ME!
|
Element | getElement(int depth)
DOCUMENT ME!
|
String | getPath()
DOCUMENT ME!
|
void | removeHandler(String path)
Removes the ElementHandler from the event based processor,
for the specified path. |
int | size()
DOCUMENT ME!
|
ElementHandler
to be called when the specified
path is encounted. The path can be either an absolute path (i.e. prefixed
with "/") or a relative path (i.e. assummed to be a child of the current
path as retrieved by getPath .
Parameters: path
is the path to be handled handler
is the ElementHandler
to be called by the event
based processor.
Returns: the current element
Parameters: depth DOCUMENT ME!
Returns: the element at the specified depth index, 0 = root element
Returns: the path as a string
ElementHandler
from the event based processor,
for the specified path. The path can be either an absolute path (i.e.
prefixed with "/") or a relative path (i.e. assummed to be a child of the
current path as retrieved by getPath .
Parameters: path
is the path to remove the ElementHandler
for.
Returns: the number of elements in the path