Class XmlNodeImpl

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

@Deprecated public class XmlNodeImpl extends Object implements Serializable, org.apache.maven.api.xml.XmlNode
Deprecated.
NOTE: remove all the util code in here when separated, this class should be pure data.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.maven.api.xml.XmlNode

    org.apache.maven.api.xml.XmlNode.Builder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Map<String,String>
    Deprecated.
     
    protected final List<org.apache.maven.api.xml.XmlNode>
    Deprecated.
     
    protected final Object
    Deprecated.
     
    protected final String
    Deprecated.
     
    protected final String
    Deprecated.
     
    protected final String
    Deprecated.
     
    protected final String
    Deprecated.
     

    Fields inherited from interface org.apache.maven.api.xml.XmlNode

    CHILDREN_COMBINATION_APPEND, CHILDREN_COMBINATION_MERGE, CHILDREN_COMBINATION_MODE_ATTRIBUTE, DEFAULT_CHILDREN_COMBINATION_MODE, DEFAULT_SELF_COMBINATION_MODE, ID_COMBINATION_MODE_ATTRIBUTE, KEYS_COMBINATION_MODE_ATTRIBUTE, SELF_COMBINATION_MERGE, SELF_COMBINATION_MODE_ATTRIBUTE, SELF_COMBINATION_OVERRIDE, SELF_COMBINATION_REMOVE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
    XmlNodeImpl(String name, String value)
    Deprecated.
     
    XmlNodeImpl(String prefix, String namespaceUri, String name, String value, Map<String,String> attributes, List<org.apache.maven.api.xml.XmlNode> children, Object location)
    Deprecated.
     
    XmlNodeImpl(String name, String value, Map<String,String> attributes, List<org.apache.maven.api.xml.XmlNode> children, Object location)
    Deprecated.
     
    XmlNodeImpl(org.apache.maven.api.xml.XmlNode from, String name)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
     
    Deprecated.
     
    org.apache.maven.api.xml.XmlNode
    child(String name)
    Deprecated.
     
    List<org.apache.maven.api.xml.XmlNode>
    Deprecated.
     
    boolean
    Deprecated.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated, for removal: This API element is subject to removal in a future version.
    org.apache.maven.api.xml.XmlNode
    Deprecated, for removal: This API element is subject to removal in a future version.
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    List<org.apache.maven.api.xml.XmlNode>
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated, for removal: This API element is subject to removal in a future version.
    int
    Deprecated.
     
    Deprecated.
     
    org.apache.maven.api.xml.XmlNode
    merge(org.apache.maven.api.xml.XmlNode source, Boolean childMergeOverride)
    Deprecated.
     
    static org.apache.maven.api.xml.XmlNode
    merge(org.apache.maven.api.xml.XmlNode dominant, org.apache.maven.api.xml.XmlNode recessive)
    Deprecated, for removal: This API element is subject to removal in a future version.
    use XmlService.merge(XmlNode, XmlNode, Boolean) instead
    static org.apache.maven.api.xml.XmlNode
    merge(org.apache.maven.api.xml.XmlNode dominant, org.apache.maven.api.xml.XmlNode recessive, Boolean childMergeOverride)
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.maven.api.xml.XmlNode

    merge
  • Field Details

    • prefix

      @Nonnull protected final String prefix
      Deprecated.
    • namespaceUri

      @Nonnull protected final String namespaceUri
      Deprecated.
    • name

      @Nonnull protected final String name
      Deprecated.
    • value

      protected final String value
      Deprecated.
    • attributes

      @Nonnull protected final Map<String,String> attributes
      Deprecated.
    • children

      @Nonnull protected final List<org.apache.maven.api.xml.XmlNode> children
      Deprecated.
    • location

      protected final Object location
      Deprecated.
  • Constructor Details

    • XmlNodeImpl

      public XmlNodeImpl(String name)
      Deprecated.
    • XmlNodeImpl

      public XmlNodeImpl(String name, String value)
      Deprecated.
    • XmlNodeImpl

      public XmlNodeImpl(org.apache.maven.api.xml.XmlNode from, String name)
      Deprecated.
    • XmlNodeImpl

      public XmlNodeImpl(String name, String value, Map<String,String> attributes, List<org.apache.maven.api.xml.XmlNode> children, Object location)
      Deprecated.
    • XmlNodeImpl

      public XmlNodeImpl(String prefix, String namespaceUri, String name, String value, Map<String,String> attributes, List<org.apache.maven.api.xml.XmlNode> children, Object location)
      Deprecated.
  • Method Details

    • merge

      public org.apache.maven.api.xml.XmlNode merge(org.apache.maven.api.xml.XmlNode source, Boolean childMergeOverride)
      Deprecated.
      Specified by:
      merge in interface org.apache.maven.api.xml.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 org.apache.maven.api.xml.XmlNode
    • prefix

      @Nonnull public String prefix()
      Deprecated.
      Specified by:
      prefix in interface org.apache.maven.api.xml.XmlNode
    • 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 org.apache.maven.api.xml.XmlNode
    • namespaceUri

      @Nonnull public String namespaceUri()
      Deprecated.
      Specified by:
      namespaceUri in interface org.apache.maven.api.xml.XmlNode
    • 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 org.apache.maven.api.xml.XmlNode
    • name

      @Nonnull public String name()
      Deprecated.
      Specified by:
      name in interface org.apache.maven.api.xml.XmlNode
    • 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 org.apache.maven.api.xml.XmlNode
    • value

      public String value()
      Deprecated.
      Specified by:
      value in interface org.apache.maven.api.xml.XmlNode
    • 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 org.apache.maven.api.xml.XmlNode
    • attributes

      @Nonnull public Map<String,String> attributes()
      Deprecated.
      Specified by:
      attributes in interface org.apache.maven.api.xml.XmlNode
    • 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 org.apache.maven.api.xml.XmlNode
    • attribute

      public String attribute(@Nonnull String name)
      Deprecated.
      Specified by:
      attribute in interface org.apache.maven.api.xml.XmlNode
    • getChild

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

      public org.apache.maven.api.xml.XmlNode child(String name)
      Deprecated.
      Specified by:
      child in interface org.apache.maven.api.xml.XmlNode
    • getChildren

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

      @Nonnull public List<org.apache.maven.api.xml.XmlNode> children()
      Deprecated.
      Specified by:
      children in interface org.apache.maven.api.xml.XmlNode
    • 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 org.apache.maven.api.xml.XmlNode
      Returns:
      input location
      Since:
      3.2.0
    • inputLocation

      public Object inputLocation()
      Deprecated.
      Specified by:
      inputLocation in interface org.apache.maven.api.xml.XmlNode
    • merge

      public static org.apache.maven.api.xml.XmlNode merge(org.apache.maven.api.xml.XmlNode dominant, org.apache.maven.api.xml.XmlNode recessive, Boolean childMergeOverride)
      Deprecated.
    • merge

      @Deprecated(since="4.0.0", forRemoval=true) public static org.apache.maven.api.xml.XmlNode merge(org.apache.maven.api.xml.XmlNode dominant, org.apache.maven.api.xml.XmlNode recessive)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use XmlService.merge(XmlNode, XmlNode, Boolean) instead
      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:
      • XmlService.CHILDREN_COMBINATION_MODE_ATTRIBUTE
      • XmlService.SELF_COMBINATION_MODE_ATTRIBUTE
    • 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.