Package org.apache.maven.api.xml
Interface XmlNode
An immutable xml node.
- Since:
- 4.0.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
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.static final String
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.static final String
In case of complex XML structures, combining can be done based on id.static final String
In case of complex XML structures, combining can be done based on keys.static final String
static final String
static final String
static 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 eitherdominant
with merged information or a clone ofrecessive
ifdominant
isnull
.- Parameters:
dominant
- the noderecessive
- ifnull
, nothing will happen- Returns:
- the merged node
-
merge
-