public class DescriptorTag extends Object
Constructor and Description |
---|
DescriptorTag(String tagName)
Constructor.
|
DescriptorTag(String tagName,
boolean isMultipleAllowed)
Deprecated.
Use
DescriptorTag(String,boolean,Class) instead |
DescriptorTag(String tagName,
boolean isMultipleAllowed,
Class mergeableClass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Mergeable |
createMergeable(org.jdom2.Element element)
Creates an
Mergeable instance from the registered class for this
tag instance. |
boolean |
equals(Object other) |
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.
|
String |
toString() |
public DescriptorTag(String tagName)
tagName
- The tag name of the elementpublic DescriptorTag(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(String tagName, boolean isMultipleAllowed, 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 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.Copyright © 2001–2021 Codehaus Plexus. All rights reserved.