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 ObjectDeprecated.protected final StringDeprecated.protected final StringDeprecated.protected final StringDeprecated.protected final StringDeprecated.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.booleanDeprecated.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.intDeprecated, 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.inthashCode()Deprecated.Deprecated.Returns the input location information for this node, if available.Deprecated.static XmlNodeDeprecated, for removal: This API element is subject to removal in a future version.static XmlNodeDeprecated.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:
getNamespaceUriin interfaceXmlNode
-
namespaceUri
Deprecated.Description copied from interface:XmlNodeReturns the namespace URI of this XML node.- Specified by:
namespaceUriin 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:
getAttributesin interfaceXmlNode
-
attributes
-
getAttribute
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAttributein 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:
getChildrenin 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:
getInputLocationin interfaceXmlNode- Returns:
- input location
- Since:
- 3.2.0
-
inputLocation
Deprecated.Description copied from interface:XmlNodeReturns the input location information for this node, if available. This can be useful for error reporting and debugging.- Specified by:
inputLocationin interfaceXmlNode- Returns:
- the input location object, or
nullif 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