Class DescriptorTag
java.lang.Object
org.codehaus.plexus.metadata.merge.support.DescriptorTag
- Direct Known Subclasses:
PlexusXmlTag
Represents the various top-level tags in a deployment descriptor as a typesafe enumeration.
-
Constructor Summary
ConstructorsConstructorDescriptionDescriptorTag(String tagName) Constructor.DescriptorTag(String tagName, boolean isMultipleAllowed) Deprecated.DescriptorTag(String tagName, boolean isMultipleAllowed, Class mergeableClass) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncreateMergeable(org.jdom2.Element element) Creates anMergeableinstance from the registered class for this tag instance.booleaninthashCode()booleanDetermines if a particular Tag is mergeable or not.booleanReturns whether the tag may occur multiple times in the descriptor.toString()
-
Constructor Details
-
DescriptorTag
Constructor.- Parameters:
tagName- The tag name of the element
-
DescriptorTag
Deprecated.UseDescriptorTag(String,boolean,Class)insteadConstructor.- Parameters:
tagName- The tag name of the elementisMultipleAllowed- Whether the element may occur multiple times in the descriptor
-
DescriptorTag
Constructor.- Parameters:
tagName- The tag name of the elementisMultipleAllowed- Whether the element may occur multiple times in the descriptormergeableClass- Concrete implementation ofMergeablethat is bound this tag.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getTagName
-
isMultipleAllowed
public boolean isMultipleAllowed()Returns whether the tag may occur multiple times in the descriptor.- Returns:
- Whether multiple occurrences are allowed
-
isMergeable
public boolean isMergeable()Determines if a particular Tag is mergeable or not.Basically means if we have a
Mergeableclass registered for a tag instance.- Returns:
trueif this tag is mergeable.
-
toString
-
createMergeable
Creates anMergeableinstance from the registered class for this tag instance.
-
DescriptorTag(String,boolean,Class)instead