Class Location
java.lang.Object
com.deltaxml.core.config.ignoreChanges.Location
This class is used to denote a location for which any changes should be ignored.
A
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 Summary
ConstructorsConstructorDescriptionInitialises aLocationwith only an XPath.Location(String ignoreXpath, ResultRule resultRule) Initialises aLocationwith both XPath andResultRule. -
Method Summary
Modifier and TypeMethodDescriptionGets theLocationXPath.Gets theResultRulefor theLocation.voidsetIgnoreXpath(String ignoreXpath) Sets the XPath used to mark the location of the node where changes should be ignored.voidsetResultRule(ResultRule resultRule) Sets theResultRulefor theLocation.
-
Constructor Details
-
Location
Initialises aLocationwith both XPath andResultRule.- Parameters:
ignoreXpath- theLocationXPath.resultRule- theResultRule.- Throws:
IllegalArgumentException- if passed resultRule is null or ignoreXpath is invalid.
-
Location
Initialises aLocationwith only an XPath. TheResultRuleof thisLocationwill be set to the default rule.- Parameters:
ignoreXpath- theLocationXPath.- Throws:
IllegalArgumentException- if passed ignoreXpath is invalid.
-
-
Method Details
-
getIgnoreXpath
Gets theLocationXPath.- Returns:
LocationXPath
-
setIgnoreXpath
Sets the XPath used to mark the location of the node where changes should be ignored.- Parameters:
ignoreXpath- an XPath used to mark the location of the node where changes should be ignored.- Throws:
IllegalArgumentException- if passed ignoreXpath is invalid.
-
getResultRule
Gets theResultRulefor theLocation.- Returns:
ResultRulefor theLocation.
-
setResultRule
Sets theResultRulefor theLocation.- Parameters:
resultRule- aResultRuleused to choose which value to show in the result.- Throws:
IllegalArgumentException- if passedResultRuleis null.
-