|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.xpath.XMLStoreNavigator
public class XMLStoreNavigator
This navigator implements a bridge between XPath and XML Store.
| Field Summary |
|---|
| Fields inherited from interface org.planx.xpath.Navigator |
|---|
ATTRIBUTE, COMMENT, ELEMENT, NAMESPACE, PROCESSING_INSTRUCTION, ROOT, TEXT |
| Constructor Summary | |
|---|---|
XMLStoreNavigator()
Construct an XMLStoreNavigator. |
|
| Method Summary | |
|---|---|
int |
attributeCount(Object node)
Return the number of attributes of the specified node. |
int |
childCount(Object node)
Return the number of children of the specified node. |
Object |
getAttribute(Object node,
int index)
Return the attribute of the specified node with the specified attribute index. |
Object |
getChild(Object node,
int index)
Return the child of the specified node with the specified child index. |
String |
getName(Object node)
Return the name of the specified node. |
Object |
getParent(Object node)
Return the parent of the specified node or null
if it does not have a parent. |
Object |
getRoot(Object node)
Return the root node of the document to which the specified node belongs. |
String |
getStringValue(Object node)
Return the value of the specified node as defined in the XPath specification. |
int |
getType(Object node)
Return the type of the node as specified in this interface. |
Object |
nextSibling(Object node)
Return the next sibling of the specified node or null
if it does not have a one. |
Object |
previousSibling(Object node)
Return the previous sibling of the specified node or null
if it does not have a one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLStoreNavigator()
| Method Detail |
|---|
public Object getRoot(Object node)
throws XPathException
Navigator
getRoot in interface NavigatorXPathException
public Object getParent(Object node)
throws XPathException
Navigatornull
if it does not have a parent.
getParent in interface NavigatorXPathException
public Object nextSibling(Object node)
throws XPathException
Navigatornull
if it does not have a one.
nextSibling in interface NavigatorXPathException
public Object previousSibling(Object node)
throws XPathException
Navigatornull
if it does not have a one.
previousSibling in interface NavigatorXPathException
public Object getChild(Object node,
int index)
throws XPathException
Navigator
getChild in interface NavigatorXPathException
public int childCount(Object node)
throws XPathException
Navigator
childCount in interface NavigatorXPathException
public Object getAttribute(Object node,
int index)
throws XPathException
Navigator
getAttribute in interface NavigatorXPathException
public int attributeCount(Object node)
throws XPathException
Navigator
attributeCount in interface NavigatorXPathException
public String getName(Object node)
throws XPathException
Navigatornull.
For attribute nodes this is the name of the attribute.
getName in interface NavigatorXPathException
public String getStringValue(Object node)
throws XPathException
Navigator
getStringValue in interface NavigatorXPathException
public int getType(Object node)
throws XPathException
Navigator
getType in interface NavigatorXPathException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||