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.Deprecated.Deprecated.children()
Deprecated.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.Deprecated.static XmlNode
Deprecated, for removal: This API element is subject to removal in a future version.static XmlNode
Deprecated.name()
Deprecated.Deprecated.prefix()
Deprecated.toString()
Deprecated.Deprecated.value()
Deprecated.
-
Field Details
-
prefix
Deprecated. -
namespaceUri
Deprecated. -
name
Deprecated. -
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
-
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
Deprecated.- Specified by:
attributes
in interfaceXmlNode
-
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
-
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