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 anMergeable
instance from the registered class for this tag instance.boolean
int
hashCode()
boolean
Determines if a particular Tag is mergeable or not.boolean
Returns 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 ofMergeable
that 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
Mergeable
class registered for a tag instance.- Returns:
true
if this tag is mergeable.
-
toString
-
createMergeable
Creates anMergeable
instance from the registered class for this tag instance.
-
DescriptorTag(String,boolean,Class)
instead