public class Location
extends java.lang.Object
Location must be defined by an XPath. A ResultRule is then used to decide the behaviour of
the result at this location. The default is BA.| Constructor and Description |
|---|
Location(java.lang.String ignoreXpath)
Initialises a
Location with only an XPath. |
Location(java.lang.String ignoreXpath,
ResultRule resultRule)
Initialises a
Location with both XPath and ResultRule. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getIgnoreXpath()
Gets the
Location XPath. |
ResultRule |
getResultRule()
Gets the
ResultRule for the Location. |
void |
setIgnoreXpath(java.lang.String ignoreXpath)
Sets the XPath used to mark the location of the node where changes should be ignored.
|
void |
setResultRule(ResultRule resultRule)
Sets the
ResultRule for the Location. |
public Location(java.lang.String ignoreXpath,
ResultRule resultRule)
Location with both XPath and ResultRule.ignoreXpath - the Location XPath.resultRule - the ResultRule.java.lang.IllegalArgumentException - if passed resultRule is null or ignoreXpath is invalid.public Location(java.lang.String ignoreXpath)
Location with only an XPath.
The ResultRule of this Location will be set to the default rule.ignoreXpath - the Location XPath.java.lang.IllegalArgumentException - if passed ignoreXpath is invalid.public java.lang.String getIgnoreXpath()
Location XPath.Location XPathpublic void setIgnoreXpath(java.lang.String ignoreXpath)
ignoreXpath - an XPath used to mark the location of the node where changes should be ignored.java.lang.IllegalArgumentException - if passed ignoreXpath is invalid.public ResultRule getResultRule()
ResultRule for the Location.ResultRule for the Location.public void setResultRule(ResultRule resultRule)
ResultRule for the Location.resultRule - a ResultRule used to choose which value to show in the result.java.lang.IllegalArgumentException - if passed ResultRule is null.