Package com.deltaxml.core.config.moves
Class MoveCandidate
java.lang.Object
com.deltaxml.core.config.moves.MoveCandidate
This class is used to represent move candidate element XPath and class XPath pairs.
To define a move candidate you must define an XPath which declares what its location is.
This is the "elemXPath".
You can also optionally define a second XPath which we call the "Move Class",
which allows specifying groups or types of move candidates.
This is the "classXPath".
-
Constructor Summary
ConstructorsConstructorDescriptionMoveCandidate(String elemXpath) Initialise a move candidate with only a move element XPath.MoveCandidate(String elemXpath, String classXpath) Initialise a move candidate with both move element and class XPaths. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the MoveCandidate class XPath.Gets the MoveCandidate element XPath.inthashCode()voidsetClassXpath(String classXpath) Sets the class XPath.voidsetElemXpath(String elemXpath) Sets the element XPath.
-
Constructor Details
-
MoveCandidate
Initialise a move candidate with both move element and class XPaths.- Parameters:
elemXpath- The MoveCandidate element XPath.classXpath- The MoveCandidate class XPath.
-
MoveCandidate
Initialise a move candidate with only a move element XPath. This constructor will set the move class to the value of the context node.- Parameters:
elemXpath- The MoveCandidate element XPath.
-
-
Method Details
-
getElemXpath
Gets the MoveCandidate element XPath.- Returns:
- element XPath
-
setElemXpath
Sets the element XPath.- Parameters:
elemXpath- An XPath can be set which will be used to select the element(s) to be moved.
-
getClassXpath
Gets the MoveCandidate class XPath.- Returns:
- Move class XPath
-
setClassXpath
Sets the class XPath.- Parameters:
classXpath- This optional parameter will specify a class of move candidates.
-
equals
-
hashCode
public int hashCode()
-