Class PomElement


  • public final class PomElement
    extends Object
    Represents a POM (Project Object Model) element with a specific path and value. This class is immutable and designed to encapsulate a simple mapping between a path string and its corresponding value within a POM structure.
    • Constructor Detail

      • PomElement

        public PomElement​(String path,
                          Object value)
        Constructs a new PomElement with the specified path and value.
        Parameters:
        path - the path representing the location of this element in the POM structure
        value - the value associated with this element
    • Method Detail

      • getPath

        public String getPath()
        Retrieves the path associated with this POM element.
        Returns:
        the path as a string
      • getValue

        public Object getValue()
        Retrieves the value associated with this POM element.
        Returns:
        the value assigned to this POM element, which can be any Object type.