PlexusXmlTag
public class DescriptorTag
extends java.lang.Object
Constructor | Description |
---|---|
DescriptorTag(java.lang.String tagName) |
Constructor.
|
DescriptorTag(java.lang.String tagName,
boolean isMultipleAllowed) |
Deprecated.
Use
DescriptorTag(String,boolean,Class) instead |
DescriptorTag(java.lang.String tagName,
boolean isMultipleAllowed,
java.lang.Class mergeableClass) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
Mergeable |
createMergeable(org.jdom2.Element element) |
Creates an
Mergeable instance from the registered class for this
tag instance. |
boolean |
equals(java.lang.Object other) |
|
java.lang.String |
getTagName() |
|
int |
hashCode() |
|
boolean |
isMergeable() |
Determines if a particular Tag is mergeable or not.
|
boolean |
isMultipleAllowed() |
Returns whether the tag may occur multiple times in the descriptor.
|
java.lang.String |
toString() |
public DescriptorTag(java.lang.String tagName)
tagName
- The tag name of the elementpublic DescriptorTag(java.lang.String tagName, boolean isMultipleAllowed)
DescriptorTag(String,boolean,Class)
insteadtagName
- The tag name of the elementisMultipleAllowed
- Whether the element may occur multiple times in the descriptorpublic DescriptorTag(java.lang.String tagName, boolean isMultipleAllowed, java.lang.Class mergeableClass)
tagName
- The tag name of the elementisMultipleAllowed
- Whether the element may occur multiple times in the descriptormergeableClass
- Concrete implementation of Mergeable
that is bound this tag.public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getTagName()
public boolean isMultipleAllowed()
public boolean isMergeable()
Basically means if we have a Mergeable
class registered for a tag instance.
true
if this tag is mergeable.public java.lang.String toString()
toString
in class java.lang.Object
public Mergeable createMergeable(org.jdom2.Element element) throws java.lang.Exception
Mergeable
instance from the registered class for this
tag instance.element
- Element
.Mergeable
.java.lang.Exception
- if there was an error creating an instance.