|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.metadata.merge.support.DescriptorTag
public class DescriptorTag
Represents the various top-level tags in a deployment descriptor as a typesafe enumeration.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DescriptorTag(java.lang.String tagName)
tagName - The tag name of the element
public DescriptorTag(java.lang.String tagName,
boolean isMultipleAllowed)
DescriptorTag(String,boolean,Class) instead
tagName - The tag name of the elementisMultipleAllowed - Whether the element may occur multiple times in the descriptor
public 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.| Method Detail |
|---|
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
public Mergeable createMergeable(org.jdom.Element element)
throws java.lang.Exception
Mergeable instance from the registered class for this
tag instance.
Mergeable.
java.lang.Exception - if there was an error creating an instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||