|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectelectric.xml.xpath.TMEXPath
TMEXPath
| Constructor Summary | |
TMEXPath(java.lang.String xpath)
Construct an XPath with the specified expression and no namespace context. |
|
TMEXPath(java.lang.String xpath,
INamespaceContext namespaceContext)
Construct an XPath with the specified expression and namespace context. |
|
| Method Summary | |
Attribute |
getAttribute(Element element)
|
Attributes |
getAttributes(Element element)
|
boolean |
getBoolean(Node node)
|
Element |
getElement(Parent parent)
|
Elements |
getElements(Parent parent)
|
java.lang.String |
getNamespace(java.lang.String prefix)
Return the namespace associated with the specified prefix, or null if none exists. |
INamespaceContext |
getNamespaceContext()
Return the namespace context. |
Node |
getNode(Node node)
|
Nodes |
getNodes(Node node)
|
void |
setNamespace(java.lang.String prefix,
java.lang.String namespace)
Register a namespace with the specified prefix and namespace. |
void |
setNamespaceContext(INamespaceContext namespaceContext)
Set the namespace context. |
java.lang.String |
toString()
Return the xpath expression. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TMEXPath(java.lang.String xpath)
throws XPathException
xpath - The xpath expression.
XPathException - If the path is malformed.
public TMEXPath(java.lang.String xpath,
INamespaceContext namespaceContext)
throws XPathException
xpath - The xpath expression.namespaceContext - The namespace context.
XPathException - If the path is malformed.| Method Detail |
public java.lang.String toString()
public INamespaceContext getNamespaceContext()
public void setNamespaceContext(INamespaceContext namespaceContext)
namespaceContext - The new value.
public Nodes getNodes(Node node)
throws XPathException
getNodes in interface IXPathnode -
XPathException
public Node getNode(Node node)
throws XPathException
getNode in interface IXPathnode -
XPathException
public Attribute getAttribute(Element element)
throws XPathException
getAttribute in interface IXPathelement -
XPathException
public Attributes getAttributes(Element element)
throws XPathException
getAttributes in interface IXPathelement -
XPathException
public Element getElement(Parent parent)
throws XPathException
getElement in interface IXPathparent -
XPathException
public Elements getElements(Parent parent)
throws XPathException
getElements in interface IXPathparent -
XPathException
public void setNamespace(java.lang.String prefix,
java.lang.String namespace)
setNamespace in interface IXPathprefix - The prefix.namespace - The namespace.public java.lang.String getNamespace(java.lang.String prefix)
prefix - The prefix.public boolean getBoolean(Node node)
getBoolean in interface IXPathnode -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||