Class RequirementsElement
java.lang.Object
org.codehaus.plexus.metadata.merge.support.AbstractMergeableSupport
org.codehaus.plexus.metadata.merge.support.AbstractMergeableElement
org.codehaus.plexus.metadata.merge.support.AbstractMergeableElementList
org.codehaus.plexus.metadata.merge.support.RequirementsElement
- All Implemented Interfaces:
Mergeable
- Author:
- Rahul Thakur
-
Field Summary
FieldsFields inherited from class org.codehaus.plexus.metadata.merge.support.AbstractMergeableSupport
element -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns an array of tags/elements that are allowed under the current element.protected ListgetElementNamesForConflictResolution(List defaultList) Sub classes should override if they wish to provide a different combination of composite keys for determining conflicts.protected StringAllows the sub classes to provided a tag name that they expect to recurr within them.protected booleanDetermines if the passed inMergeablewas of same type as this class.Methods inherited from class org.codehaus.plexus.metadata.merge.support.AbstractMergeableElementList
merge, merge, parseRecurringMergeablesMethods inherited from class org.codehaus.plexus.metadata.merge.support.AbstractMergeableElement
isRecessiveElementInConflict, isRecessiveElementInConflict, merge, mergeableElementComesFromRecessiveMethods inherited from class org.codehaus.plexus.metadata.merge.support.AbstractMergeableSupport
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
-
Field Details
-
TAG
-
-
Constructor Details
-
RequirementsElement
public RequirementsElement(org.jdom2.Element element)
-
-
Method Details
-
isExpectedElementType
Description copied from class:AbstractMergeableSupportDetermines if the passed inMergeablewas of same type as this class.- Specified by:
isExpectedElementTypein classAbstractMergeableSupport- Parameters:
me-Mergeableinstance to test.- Returns:
trueif the passed in Mergeable can be merged with the current Mergeable.
-
getAllowedTags
Description copied from interface:MergeableReturns an array of tags/elements that are allowed under the current element.- Returns:
- the allowedTags
-
getElementNamesForConflictResolution
Description copied from class:AbstractMergeableSupportSub classes should override if they wish to provide a different combination of composite keys for determining conflicts.- Specified by:
getElementNamesForConflictResolutionin classAbstractMergeableElementList- Parameters:
defaultList- the default list.- Returns:
- the default list.
-
getTagNameForRecurringMergeable
Description copied from class:AbstractMergeableElementListAllows the sub classes to provided a tag name that they expect to recurr within them. For instance:- <components> expects <component> to recurr within itself.
- <requirements> expects <requirement> to recurr within itself.
- Specified by:
getTagNameForRecurringMergeablein classAbstractMergeableElementList- Returns:
- tag name of the
Mergeableelement that occurs multiple times.
-