public class XPathLocation extends Object implements Location, Serializable
| Constructor and Description |
|---|
XPathLocation()
Creates a default XPathLocation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String name)
Adds an attribute to the XPath location.
|
void |
addChild(String name)
Adds the given element name as a child of the current path.
|
void |
addParent(String name)
Adds the name as a parent of the current path.
|
String |
toString()
Returns the String representation of this XPathLocation.
|
public void addAttribute(String name)
name - the name of the attributepublic void addChild(String name)
name - the name to add as a childpublic void addParent(String name)
name - the name to add as a parentCopyright © 2016. All rights reserved.