public class InheritableTagLibrary extends SingleNSTagLibrary
| Constructor and Description |
|---|
InheritableTagLibrary()
Construct a tag library that doesn't have a parent.
|
InheritableTagLibrary(TagLibrary parentTagLibrary)
Construct a tag library with a parent.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAdder(java.lang.String tag,
Adder adder)
Instead of creating an adder that does it all, this function internally
creates a compound adder that combine the functionalities of individual
specialized adders.
|
Adder |
getAdder(java.lang.String ns,
java.lang.String tag)
Get the Adder delegate associated with the namespace and tag.
|
java.util.Map |
getAttributes(java.lang.String ns,
java.lang.String tag)
This function reports the attributes associated with a particular tag.
|
java.util.LinkedList |
getParentTags(java.lang.String tag)
Retrieve the direct parent tags.
|
java.util.LinkedList |
getParentTags(java.lang.String ns,
java.lang.String tag)
This for documentation purpose to retrieve the direct parent tags.
|
Setter |
getSetter(java.lang.String ns,
java.lang.String tag,
java.lang.String attrNS,
java.lang.String attr)
Get the Setter delegate associated with the namespace and tag.
|
void |
inheritTag(java.lang.String parentTag,
java.lang.String thisTag)
create a tag inheritance.
|
void |
inheritTag(java.lang.String parentNs,
java.lang.String parentTag,
java.lang.String thisTag)
Create a tag inheritance.
|
getConverter, getConverters, getCreator, getNameSpace, getNameSpaces, getParent, getSpecialCreator, getTags, setAdder, setConverter, setCreator, setNameSpace, setSetterpublic InheritableTagLibrary()
public InheritableTagLibrary(TagLibrary parentTagLibrary)
parentTagLibrary - the parent tag library.public void inheritTag(java.lang.String parentNs,
java.lang.String parentTag,
java.lang.String thisTag)
parentNs - the optional namespace of the parent tag. If null, then use the same
name space as the childTag.parentTag - the parent tag namethisTag - the child tag namepublic void inheritTag(java.lang.String parentTag,
java.lang.String thisTag)
parentTag - the parent tag namethisTag - the child tag namepublic Setter getSetter(java.lang.String ns, java.lang.String tag, java.lang.String attrNS, java.lang.String attr)
TagLibrarygetSetter in interface TagLibrarygetSetter in class SingleNSTagLibraryns - the namespace.tag - the tag name.attrNS - the attribute namespace.attr - the attribute name @return the Setter delegate.public Adder getAdder(java.lang.String ns, java.lang.String tag)
TagLibrarygetAdder in interface TagLibrarygetAdder in class SingleNSTagLibraryns - the tag namespace.tag - the tag name.public void addAdder(java.lang.String tag,
Adder adder)
tag - the tag name.adder - the individual Adder.public java.util.LinkedList getParentTags(java.lang.String tag)
tag - the tag namepublic java.util.LinkedList getParentTags(java.lang.String ns,
java.lang.String tag)
ns - the namespace of the tag.tag - the tag namepublic java.util.Map getAttributes(java.lang.String ns,
java.lang.String tag)
DocletTagLibraryThe returned map uses XML namespace as the key, and a string array of attribute names as the value as its entries.
getAttributes in interface DocletTagLibrarygetAttributes in class SingleNSTagLibraryns - the namespace of the tag.tag - the tag name.