Class PomTransformer.TransformationContext

    • Constructor Detail

      • TransformationContext

        public TransformationContext​(Path pomXmlPath,
                                     Document document,
                                     String indentationString,
                                     XPath xPath)
    • Method Detail

      • getPomXmlPath

        public Path getPomXmlPath()
        Returns:
        the path to the pom.xml file that is being transformed
      • getXPath

        public XPath getXPath()
        Returns:
        an XPath instance that can be used for querying the DOM of the transformed pom.xml file
      • indent

        public Node indent​(int indentCount)
        Parameters:
        indentCount -
        Returns:
        a new indentation node containing a newline and indentCount times concatenated indentationString