Interface StandaloneLocalConfiguration

    • Method Detail

      • addXmlReplacement

        void addXmlReplacement​(XmlReplacement xmlReplacement)
        Adds an XML replacement.
        Parameters:
        xmlReplacement - XML replacement to add.
      • addXmlReplacement

        void addXmlReplacement​(String filename,
                               String xpathExpression,
                               String configurationPropertyName)
        Adds an XML replacement.
        Parameters:
        filename - File in which to replace.
        xpathExpression - XPath expression to look for.
        configurationPropertyName - Name of the configuration property to set. The XML replacement will be ignored if the property is set to null.
      • addXmlReplacement

        void addXmlReplacement​(String filename,
                               String xpathExpression,
                               String attributeName,
                               String configurationPropertyName)
        Adds an XML replacement.
        Parameters:
        filename - File in which to replace.
        xpathExpression - XPath expression to look for.
        attributeName - Attribute name to modify. If null, the node's contents will be modified.
        configurationPropertyName - Name of the configuration property to set. The XML replacement will be ignored if the property is set to null.
      • addXmlReplacement

        void addXmlReplacement​(String filename,
                               String xpathExpression,
                               String attributeName,
                               String configurationPropertyName,
                               XmlReplacement.ReplacementBehavior replacementBehavior)
        Adds an XML replacement.
        Parameters:
        filename - File in which to replace.
        xpathExpression - XPath expression to look for.
        attributeName - Attribute name to modify. If null, the node's contents will be modified.
        configurationPropertyName - Name of the configuration property to set. The XML replacement will be ignored if the property is set to null.
        replacementBehavior - Behavior if XPath expression doesn't match anything.
      • removeXmlReplacement

        void removeXmlReplacement​(String filename,
                                  String xpathExpression)
        Removes an XML replacement.
        Parameters:
        filename - File in which to replace.
        xpathExpression - XPath expression to look for.
      • removeXmlReplacement

        void removeXmlReplacement​(String filename,
                                  String xpathExpression,
                                  String attributeName)
        Removes an XML replacement.
        Parameters:
        filename - File in which to replace.
        xpathExpression - XPath expression to look for.
        attributeName - Attribute name to modify. If null, the node's contents will be modified.
      • getXmlReplacements

        List<XmlReplacement> getXmlReplacements()
        Returns:
        All XML replacements.