Class MoveCandidate

java.lang.Object
com.deltaxml.core.config.moves.MoveCandidate

public class MoveCandidate extends Object
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 Details

    • MoveCandidate

      public MoveCandidate(String elemXpath, String classXpath)
      Initialise a move candidate with both move element and class XPaths.
      Parameters:
      elemXpath - The MoveCandidate element XPath.
      classXpath - The MoveCandidate class XPath.
    • MoveCandidate

      public MoveCandidate(String elemXpath)
      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

      public String getElemXpath()
      Gets the MoveCandidate element XPath.
      Returns:
      element XPath
    • setElemXpath

      public void setElemXpath(String elemXpath)
      Sets the element XPath.
      Parameters:
      elemXpath - An XPath can be set which will be used to select the element(s) to be moved.
    • getClassXpath

      public String getClassXpath()
      Gets the MoveCandidate class XPath.
      Returns:
      Move class XPath
    • setClassXpath

      public void setClassXpath(String classXpath)
      Sets the class XPath.
      Parameters:
      classXpath - This optional parameter will specify a class of move candidates.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object