Class XmlNodeImpl

java.lang.Object
org.apache.maven.internal.xml.XmlNodeImpl
All Implemented Interfaces:
Serializable, XmlNode

@Deprecated public class XmlNodeImpl extends Object implements Serializable, XmlNode
Deprecated.
NOTE: remove all the util code in here when separated, this class should be pure data.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • merge

      public XmlNode merge(XmlNode source, Boolean childMergeOverride)
      Deprecated.
      Specified by:
      merge in interface XmlNode
    • getPrefix

      @Nonnull @Deprecated(since="4.0.0", forRemoval=true) public String getPrefix()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getPrefix in interface XmlNode
    • prefix

      @Nonnull public String prefix()
      Deprecated.
      Description copied from interface: XmlNode
      Returns the namespace prefix of this XML node.
      Specified by:
      prefix in interface XmlNode
      Returns:
      the namespace prefix, never null (empty string if no prefix)
    • getNamespaceUri

      @Nonnull @Deprecated(since="4.0.0", forRemoval=true) public String getNamespaceUri()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getNamespaceUri in interface XmlNode
    • namespaceUri

      @Nonnull public String namespaceUri()
      Deprecated.
      Description copied from interface: XmlNode
      Returns the namespace URI of this XML node.
      Specified by:
      namespaceUri in interface XmlNode
      Returns:
      the namespace URI, never null (empty string if no namespace)
    • getName

      @Nonnull @Deprecated(since="4.0.0", forRemoval=true) public String getName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getName in interface XmlNode
    • name

      @Nonnull public String name()
      Deprecated.
      Description copied from interface: XmlNode
      Returns the local name of this XML node.
      Specified by:
      name in interface XmlNode
      Returns:
      the node name, never null
    • getValue

      @Deprecated(since="4.0.0", forRemoval=true) public String getValue()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getValue in interface XmlNode
    • value

      public String value()
      Deprecated.
      Description copied from interface: XmlNode
      Returns the text content of this XML node.
      Specified by:
      value in interface XmlNode
      Returns:
      the node's text value, or null if none exists
    • getAttributes

      @Nonnull @Deprecated(since="4.0.0", forRemoval=true) public Map<String,String> getAttributes()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getAttributes in interface XmlNode
    • attributes

      @Nonnull public Map<String,String> attributes()
      Deprecated.
      Description copied from interface: XmlNode
      Returns an immutable map of all attributes defined on this XML node.
      Specified by:
      attributes in interface XmlNode
      Returns:
      map of attribute names to values, never null
    • getAttribute

      @Deprecated(since="4.0.0", forRemoval=true) public String getAttribute(@Nonnull String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getAttribute in interface XmlNode
    • attribute

      public String attribute(@Nonnull String name)
      Deprecated.
      Description copied from interface: XmlNode
      Returns the value of a specific attribute.
      Specified by:
      attribute in interface XmlNode
      Parameters:
      name - the name of the attribute to retrieve
      Returns:
      the attribute value, or null if the attribute doesn't exist
    • getChild

      @Deprecated(since="4.0.0", forRemoval=true) public XmlNode getChild(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getChild in interface XmlNode
    • child

      public XmlNode child(String name)
      Deprecated.
      Description copied from interface: XmlNode
      Returns the first child node with the specified name.
      Specified by:
      child in interface XmlNode
      Parameters:
      name - the name of the child node to find
      Returns:
      the first matching child node, or null if none found
    • getChildren

      @Nonnull @Deprecated(since="4.0.0", forRemoval=true) public List<XmlNode> getChildren()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getChildren in interface XmlNode
    • children

      @Nonnull public List<XmlNode> children()
      Deprecated.
      Description copied from interface: XmlNode
      Returns an immutable list of all child nodes.
      Specified by:
      children in interface XmlNode
      Returns:
      list of child nodes, never null
    • getChildCount

      @Deprecated(since="4.0.0", forRemoval=true) public int getChildCount()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getInputLocation

      @Deprecated(since="4.0.0", forRemoval=true) public Object getInputLocation()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getInputLocation in interface XmlNode
      Returns:
      input location
      Since:
      3.2.0
    • inputLocation

      public Object inputLocation()
      Deprecated.
      Description copied from interface: XmlNode
      Returns the input location information for this node, if available. This can be useful for error reporting and debugging.
      Specified by:
      inputLocation in interface XmlNode
      Returns:
      the input location object, or null if not available
    • merge

      public static XmlNode merge(XmlNode dominant, XmlNode recessive, Boolean childMergeOverride)
      Deprecated.
    • merge

      @Deprecated(since="4.0.0", forRemoval=true) public static XmlNode merge(XmlNode dominant, XmlNode recessive)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Merge two DOMs, with one having dominance in the case of collision. Merge mechanisms (vs. override for nodes, or vs. append for children) is determined by attributes of the dominant root node.
      Parameters:
      dominant - The dominant DOM into which the recessive value/attributes/children will be merged
      recessive - The recessive DOM, which will be merged into the dominant DOM
      Returns:
      merged DOM
      See Also:
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • toStringObject

      public String toStringObject()
      Deprecated.