Class XmlReplacement

    • Constructor Detail

      • XmlReplacement

        public XmlReplacement()
        Empty constructor.
      • XmlReplacement

        public XmlReplacement​(String file,
                              String xpathExpression,
                              String attributeName,
                              XmlReplacement.ReplacementBehavior replacementBehavior,
                              String value)
        Saves the attributes for this XML replacement.
        Parameters:
        file - File name.
        xpathExpression - XPath expression.
        attributeName - XML attribute name.
        replacementBehavior - Behavior if XPath expression doesn't match anything.
        value - Value or property name.
    • Method Detail

      • getFile

        public String getFile()
        Returns:
        File name.
      • setFile

        public void setFile​(String file)
        Parameters:
        file - File name.
      • getXpathExpression

        public String getXpathExpression()
        Returns:
        XPath expression.
      • setXpathExpression

        public void setXpathExpression​(String xpathExpression)
        Parameters:
        xpathExpression - XPath expression.
      • getAttributeName

        public String getAttributeName()
        Returns:
        XML attribute name.
      • setAttributeName

        public void setAttributeName​(String attributeName)
        Parameters:
        attributeName - XML attribute name.
      • setReplacementBehavior

        public void setReplacementBehavior​(XmlReplacement.ReplacementBehavior replacementBehavior)
        Parameters:
        replacementBehavior - Behavior if XPath expression doesn't match anything.
      • getValue

        public String getValue()
        Returns:
        Value or property name.
      • setValue

        public void setValue​(String value)
        Parameters:
        value - Value or property name.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object