@Experimental @ThreadSafe @Immutable public interface Dom
Modifier and Type | Field and Description |
---|---|
static String |
CHILDREN_COMBINATION_APPEND |
static String |
CHILDREN_COMBINATION_MERGE |
static String |
CHILDREN_COMBINATION_MODE_ATTRIBUTE |
static String |
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.
|
static String |
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.
|
static String |
SELF_COMBINATION_MERGE |
static String |
SELF_COMBINATION_MODE_ATTRIBUTE |
static String |
SELF_COMBINATION_OVERRIDE |
static String |
SELF_COMBINATION_REMOVE |
Modifier and Type | Method and Description |
---|---|
Dom |
clone() |
String |
getAttribute(String name) |
Map<String,String> |
getAttributes() |
Dom |
getChild(String name) |
List<Dom> |
getChildren() |
Object |
getInputLocation() |
String |
getName() |
String |
getValue() |
default Dom |
merge(Dom source) |
Dom |
merge(Dom source,
Boolean childMergeOverride) |
static Dom |
merge(Dom dominant,
Dom recessive)
Merge recessive into dominant and return either
dominant
with merged information or a clone of recessive if
dominant is null . |
static Dom |
merge(Dom dominant,
Dom recessive,
Boolean childMergeOverride) |
static final String CHILDREN_COMBINATION_MODE_ATTRIBUTE
static final String CHILDREN_COMBINATION_MERGE
static final String CHILDREN_COMBINATION_APPEND
static final String DEFAULT_CHILDREN_COMBINATION_MODE
static final String SELF_COMBINATION_MODE_ATTRIBUTE
static final String SELF_COMBINATION_OVERRIDE
static final String SELF_COMBINATION_MERGE
static final String SELF_COMBINATION_REMOVE
static final String DEFAULT_SELF_COMBINATION_MODE
Dom clone()
@Nullable static Dom merge(@Nullable Dom dominant, @Nullable Dom recessive)
dominant
with merged information or a clone of recessive
if
dominant
is null
.dominant
- the noderecessive
- if null
, nothing will happenCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.