Class XmlNodeImpl
java.lang.Object
org.apache.maven.internal.xml.XmlNodeImpl
- All Implemented Interfaces:
Serializable
,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
XmlNode.Builder
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.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
ConstructorsConstructorDescriptionXmlNodeImpl
(String name) Deprecated.XmlNodeImpl
(String name, String value) Deprecated.XmlNodeImpl
(String prefix, String namespaceUri, String name, String value, Map<String, String> attributes, List<XmlNode> children, Object location) Deprecated.XmlNodeImpl
(String name, String value, Map<String, String> attributes, List<XmlNode> children, Object location) Deprecated.XmlNodeImpl
(XmlNode from, String name) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the value of a specific attribute.Deprecated.Returns an immutable map of all attributes defined on this XML node.Deprecated.Returns the first child node with the specified name.children()
Deprecated.Returns an immutable list of all child nodes.boolean
Deprecated.getAttribute
(String name) 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, 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.getName()
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.getValue()
Deprecated, for removal: This API element is subject to removal in a future version.int
hashCode()
Deprecated.Deprecated.Returns the input location information for this node, if available.Deprecated.static XmlNode
Deprecated, for removal: This API element is subject to removal in a future version.static XmlNode
Deprecated.name()
Deprecated.Returns the local name of this XML node.Deprecated.Returns the namespace URI of this XML node.prefix()
Deprecated.Returns the namespace prefix of this XML node.toString()
Deprecated.Deprecated.value()
Deprecated.Returns the text content of this XML node.
-
Field Details
-
prefix
-
namespaceUri
-
name
-
value
Deprecated. -
attributes
-
children
-
location
Deprecated.
-
-
Constructor Details
-
XmlNodeImpl
Deprecated. -
XmlNodeImpl
-
XmlNodeImpl
-
XmlNodeImpl
-
XmlNodeImpl
-
-
Method Details
-
merge
-
getPrefix
Deprecated, for removal: This API element is subject to removal in a future version. -
prefix
-
getNamespaceUri
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getNamespaceUri
in interfaceXmlNode
-
namespaceUri
Deprecated.Description copied from interface:XmlNode
Returns the namespace URI of this XML node.- Specified by:
namespaceUri
in interfaceXmlNode
- Returns:
- the namespace URI, never
null
(empty string if no namespace)
-
getName
Deprecated, for removal: This API element is subject to removal in a future version. -
name
-
getValue
Deprecated, for removal: This API element is subject to removal in a future version. -
value
-
getAttributes
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAttributes
in interfaceXmlNode
-
attributes
-
getAttribute
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAttribute
in interfaceXmlNode
-
attribute
-
getChild
Deprecated, for removal: This API element is subject to removal in a future version. -
child
-
getChildren
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getChildren
in interfaceXmlNode
-
children
-
getChildCount
Deprecated, for removal: This API element is subject to removal in a future version. -
getInputLocation
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getInputLocation
in interfaceXmlNode
- Returns:
- input location
- Since:
- 3.2.0
-
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 interfaceXmlNode
- Returns:
- the input location object, or
null
if not available
-
merge
-
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.useXmlService.merge(XmlNode, XmlNode, Boolean)
insteadMerge 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 mergedrecessive
- The recessive DOM, which will be merged into the dominant DOM- Returns:
- merged DOM
- See Also:
-
equals
-
hashCode
-
toString
-
toStringObject
Deprecated.
-
XmlService.merge(XmlNode, XmlNode, Boolean)
instead