Class ComponentElement
- java.lang.Object
-
- org.codehaus.plexus.metadata.merge.support.AbstractMergeableSupport
-
- org.codehaus.plexus.metadata.merge.support.AbstractMergeableElement
-
- org.codehaus.plexus.metadata.merge.support.ComponentElement
-
- All Implemented Interfaces:
Mergeable
public class ComponentElement extends AbstractMergeableElement
-
-
Field Summary
Fields Modifier and Type Field Description private DescriptorTag[]allowedTagsAllowed elements/tags that we can expect under this element.private static DescriptorTagCONFIGURATIONprivate static DescriptorTagDESCRIPTION(package private) static DescriptorTagFIELD_NAMEprivate static DescriptorTagIMPLEMENTATION(package private) static DescriptorTagISOLATION_REALMprivate static DescriptorTagLIFECYCLE_HANDLER(package private) static DescriptorTagOPTIONAL(package private) static DescriptorTagROLE(package private) static DescriptorTagROLE_HINT(package private) static DescriptorTagTAG-
Fields inherited from class org.codehaus.plexus.metadata.merge.support.AbstractMergeableSupport
element
-
-
Constructor Summary
Constructors Constructor Description ComponentElement(org.jdom2.Element element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescriptorTag[]getAllowedTags()Returns an array of tags/elements that are allowed under the current element.protected booleanisExpectedElementType(Mergeable me)Determines if the passed inMergeablewas of same type as this class.-
Methods inherited from class org.codehaus.plexus.metadata.merge.support.AbstractMergeableElement
isRecessiveElementInConflict, isRecessiveElementInConflict, merge, merge, mergeableElementComesFromRecessive
-
Methods 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, getElementNamesForConflictResolution, 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 Detail
-
allowedTags
private final DescriptorTag[] allowedTags
Allowed elements/tags that we can expect under this element.
-
TAG
static final DescriptorTag TAG
-
ROLE
static final DescriptorTag ROLE
-
ROLE_HINT
static final DescriptorTag ROLE_HINT
-
OPTIONAL
static final DescriptorTag OPTIONAL
-
ISOLATION_REALM
static final DescriptorTag ISOLATION_REALM
-
DESCRIPTION
private static final DescriptorTag DESCRIPTION
-
CONFIGURATION
private static final DescriptorTag CONFIGURATION
-
FIELD_NAME
static final DescriptorTag FIELD_NAME
-
IMPLEMENTATION
private static final DescriptorTag IMPLEMENTATION
-
LIFECYCLE_HANDLER
private static final DescriptorTag LIFECYCLE_HANDLER
-
-
Method Detail
-
isExpectedElementType
protected boolean isExpectedElementType(Mergeable me)
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
public DescriptorTag[] getAllowedTags()
Description copied from interface:MergeableReturns an array of tags/elements that are allowed under the current element.- Returns:
- the allowedTags
-
-