public abstract class AbstractMergeableElement extends AbstractMergeableSupport
element
Constructor and Description |
---|
AbstractMergeableElement(org.jdom2.Element element) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isRecessiveElementInConflict(AbstractMergeableElement re,
List eltNameList)
Detects if there was a conflict, that is the specified element was
present in both dominant and recessive element-sets.
|
protected boolean |
isRecessiveElementInConflict(AbstractMergeableElement re,
String eltName)
Deprecated.
|
void |
merge(Mergeable me)
Merges an element of same type.
|
void |
merge(Mergeable me,
MergeStrategy strategy)
Simply delegate to
|
protected boolean |
mergeableElementComesFromRecessive(AbstractMergeableElement re,
String eltName)
Determines if the Element to be merged is to be sourced from Recessive
Element set.
|
addContent, addContent, addContent, addContent, addContent, addNamespaceDeclaration, clone, cloneContent, detach, equals, getAdditionalNamespaces, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValue, getChild, getChild, getChildren, getChildren, getChildren, getChildText, getChildText, getChildTextNormalize, getChildTextNormalize, getChildTextTrim, getChildTextTrim, getContent, getContent, getContent, getContentSize, getDefaultMergeStrategy, getDescendants, getDescendants, getDocument, getElement, getElementNamesForConflictResolution, getName, getNamespace, getNamespace, getNamespacePrefix, getNamespaceURI, getParent, getParentElement, getQualifiedName, getText, getTextNormalize, getTextTrim, getValue, hashCode, indexOf, isAncestor, isExpectedElementType, isRootElement, removeAttribute, removeAttribute, removeAttribute, removeChild, removeChild, removeChildren, removeChildren, removeContent, removeContent, removeContent, removeContent, removeNamespaceDeclaration, setAttribute, setAttribute, setAttribute, setAttributes, setContent, setContent, setContent, setContent, setName, setNamespace, setText, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getAllowedTags
public AbstractMergeableElement(org.jdom2.Element element)
protected boolean isRecessiveElementInConflict(AbstractMergeableElement re, String eltName)
isRecessiveElementInConflict(AbstractMergeableElement,List)
instead.isRecessiveElementInConflict(AbstractMergeableElement,List)
.re
- Recessive element.eltName
- Element name to test for.true
if there was a conflict of element.protected boolean isRecessiveElementInConflict(AbstractMergeableElement re, List eltNameList)
<component>
is keyed on
<role>
and <role-hint>
.re
- eltNameList
- List of elements that will be checked for values in both dominant and recessive sets.protected boolean mergeableElementComesFromRecessive(AbstractMergeableElement re, String eltName)
re
- Recessive element.eltName
- Element name to test for.public void merge(Mergeable me, MergeStrategy strategy) throws MergeException
me
- Recessive Mergeable
instance.strategy
- MergeStrategy
to apply for merging.MergeException
- if there was an error while merging.Mergeable.merge(Mergeable,org.codehaus.plexus.metadata.merge.MergeStrategy)
public void merge(Mergeable me) throws MergeException
Mergeable
merge
in interface Mergeable
merge
in class AbstractMergeableSupport
me
- Another entity that is mergeable.MergeException
- if there was an error merging the mergeables.Copyright © 2001–2020 Codehaus Plexus. All rights reserved.