Class PomTransformer.TransformationContext

java.lang.Object
io.quarkus.maven.utilities.PomTransformer.TransformationContext
Enclosing class:
PomTransformer

public static class PomTransformer.TransformationContext extends Object
A context of a set of PomTransformer.Transformations.
  • Constructor Details

    • TransformationContext

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

    • 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
    • getIndentationString

      public String getIndentationString()
      Returns:
      an indentation string (without newline characters) as it was autodetected using PomTransformer.detectIndentation(Node, XPath)
    • indent

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

      public Node textElement(String elementName, String value)