Package org.apache.maven.api.xml
Interface XmlNode
- All Known Implementing Classes:
XmlNodeImpl
An immutable xml node.
- Since:
- 4.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringThis default mode for combining children DOMs during merge means that where element names match, the process will try to merge the element data, rather than putting the dominant and recessive elements (which share the same element name) as siblings in the resulting DOM.static final StringThis default mode for combining a DOM node during merge means that where element names match, the process will try to merge the element attributes and values, rather than overriding the recessive element completely with the dominant one.static final StringIn case of complex XML structures, combining can be done based on id.static final StringIn case of complex XML structures, combining can be done based on keys.static final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
-
Field Details
-
CHILDREN_COMBINATION_MODE_ATTRIBUTE
- See Also:
-
CHILDREN_COMBINATION_MERGE
- See Also:
-
CHILDREN_COMBINATION_APPEND
- See Also:
-
DEFAULT_CHILDREN_COMBINATION_MODE
This default mode for combining children DOMs during merge means that where element names match, the process will try to merge the element data, rather than putting the dominant and recessive elements (which share the same element name) as siblings in the resulting DOM.- See Also:
-
SELF_COMBINATION_MODE_ATTRIBUTE
- See Also:
-
SELF_COMBINATION_OVERRIDE
- See Also:
-
SELF_COMBINATION_MERGE
- See Also:
-
SELF_COMBINATION_REMOVE
- See Also:
-
ID_COMBINATION_MODE_ATTRIBUTE
In case of complex XML structures, combining can be done based on id.- See Also:
-
KEYS_COMBINATION_MODE_ATTRIBUTE
In case of complex XML structures, combining can be done based on keys. This is a comma separated list of attribute names.- See Also:
-
DEFAULT_SELF_COMBINATION_MODE
This default mode for combining a DOM node during merge means that where element names match, the process will try to merge the element attributes and values, rather than overriding the recessive element completely with the dominant one. This means that wherever the dominant element doesn't provide the value or a particular attribute, that value or attribute will be set from the recessive DOM node.- See Also:
-
-
Method Details
-
getName
-
getNamespaceUri
-
getPrefix
-
getValue
-
getAttributes
-
getAttribute
-
getChildren
-
getChild
-
getInputLocation
-
merge
-
merge
-
merge
Merge recessive into dominant and return eitherdominantwith merged information or a clone ofrecessiveifdominantisnull.- Parameters:
dominant- the noderecessive- ifnull, nothing will happen- Returns:
- the merged node
-
merge
-