| |
|
| java.lang.Object org.apache.lenya.xml.XPath
XPath | public class XPath (Code) | | Helper class for XPath operations
|
XPath | public XPath(String _xpath)(Code) | | Constructor
Parameters: _xpath - The Xpath |
getElementName | public String getElementName()(Code) | | Return the name of the element
the name of the element |
getNameWithoutPredicates | public String getNameWithoutPredicates()(Code) | | Get the name without predicates
The name without predicates |
getParent | public XPath getParent()(Code) | | Get the parent path
The parent path |
getType | public short getType()(Code) | | Get the type of a node. Only supports attribute and element nodes
The node type |
removePredicates | public String removePredicates(String s)(Code) | | Remove predicates (square brackets), http://www.w3.org/TR/xpath
Parameters: s - The string to remove predicates from The string without predicates |
toString | public String toString()(Code) | | Return a string representation of the XPath
The Xpath |
|
|
|