|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A tag library should contain creators, setters, adders, and converters. Depending on the namespace, the appropriate function objects are lookedup.
Method Summary | |
Adder |
getAdder(String tagNS,
String tag)
Get the Adder delegate associated with the namespace and tag. |
Converter |
getConverter(String attrNS,
Class targetClass)
Get the Converter that converts a string attribute value into the target class. |
Creator |
getCreator(String tagNS,
String tag)
Get the Creator object factory associated with the namespace and tag. |
Setter |
getSetter(String tagNS,
String tag,
String attrNS,
String attr)
Get the Setter delegate associated with the namespace and tag. |
SpecialCreator |
getSpecialCreator()
Get the SpecialCreator for the TagLibrary. |
Method Detail |
public SpecialCreator getSpecialCreator()
Most TagLibrary implementations should simply return the parent tag library implementation if it does not handle it for sure. TagLibrary implementations that pool several TagLibraries should pool multiple SpecialCreator instances into one.
public Creator getCreator(String tagNS, String tag)
tagNS
- the namespace.tag
- the tag name.
public Setter getSetter(String tagNS, String tag, String attrNS, String attr)
tagNS
- the namespace.tag
- the tag name.attrNS
- the attribute namespace.attr
- the attribute name @return the Setter delegate.public Adder getAdder(String tagNS, String tag)
tagNS
- the tag namespace.tag
- the tag name.
public Converter getConverter(String attrNS, Class targetClass)
attrNS
- the attribute namespace.targetClass
- the target class type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |