public class RequirementsElement extends AbstractMergeableElementList
Modifier and Type | Field and Description |
---|---|
static DescriptorTag |
TAG |
element
Constructor and Description |
---|
RequirementsElement(org.jdom2.Element element) |
Modifier and Type | Method and Description |
---|---|
DescriptorTag[] |
getAllowedTags()
Returns an array of tags/elements that are allowed under the current
element.
|
protected List |
getElementNamesForConflictResolution(List defaultList)
Sub classes should override if they wish to provide a different
combination of composite keys for determining conflicts.
|
protected String |
getTagNameForRecurringMergeable()
Allows the sub classes to provided a tag name that they expect to recurr
within them.
|
protected boolean |
isExpectedElementType(Mergeable me)
Determines if the passed in
Mergeable was of same type as this
class. |
merge, merge, parseRecurringMergeables
isRecessiveElementInConflict, isRecessiveElementInConflict, merge, mergeableElementComesFromRecessive
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, getName, getNamespace, getNamespace, getNamespacePrefix, getNamespaceURI, getParent, getParentElement, getQualifiedName, getText, getTextNormalize, getTextTrim, getValue, hashCode, indexOf, isAncestor, 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
public static final DescriptorTag TAG
protected boolean isExpectedElementType(Mergeable me)
AbstractMergeableSupport
Mergeable
was of same type as this
class.isExpectedElementType
in class AbstractMergeableSupport
me
- Mergeable
instance to test.true
if the passed in Mergeable can be merged with
the current Mergeable.public DescriptorTag[] getAllowedTags()
Mergeable
protected List getElementNamesForConflictResolution(List defaultList)
AbstractMergeableSupport
getElementNamesForConflictResolution
in class AbstractMergeableElementList
protected String getTagNameForRecurringMergeable()
AbstractMergeableElementList
getTagNameForRecurringMergeable
in class AbstractMergeableElementList
Mergeable
element that occurs multiple times.Copyright © 2001–2018 Codehaus Plexus. All rights reserved.