public class DescriptorTag
extends java.lang.Object
| Constructor and 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 and Description |
|---|---|
Mergeable |
createMergeable(org.jdom.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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getTagName()
public boolean isMultipleAllowed()
public boolean isMergeable()
Mergeable class registered for a tag instance.true if this tag is mergeable.public java.lang.String toString()
toString in class java.lang.Object