|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujac.print.DefaultTagBuilder
public class DefaultTagBuilder
Name: DefaultTagBuilder
Description: The default TagBuilder implementation.
builds a document tag by simply creating an instance of the
specified class, which has to be a sub class of BaseDocumentTag
of course.
| Field Summary |
|---|
| Fields inherited from interface org.ujac.print.TagBuilder |
|---|
ATTR_TAG_NAME |
| Constructor Summary | |
|---|---|
DefaultTagBuilder(String name,
Class clazz)
Constructs a DefaultTagBuilder instance with specific attributes. |
|
| Method Summary | |
|---|---|
BaseDocumentTag |
createTag(DocumentHandler documentHandler)
Creates a new tag. |
Collection |
getAliases()
Gets all registered aliases. |
String |
getName()
Gets the name of the tags, this builder creates. |
void |
registerAlias(String alias)
Registers an alias for this tag. |
void |
unregisterAlias(String alias)
Unregisters an alias for this tag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTagBuilder(String name,
Class clazz)
name - The name of the tag.clazz - The class of the tag for which to build instances.| Method Detail |
|---|
public String getName()
TagBuilder
getName in interface TagBuilderTagBuilder.getName()
public BaseDocumentTag createTag(DocumentHandler documentHandler)
throws TagInstantiationException
TagBuilder
createTag in interface TagBuilderdocumentHandler - The document handler for which to create the tag instance.
TagInstantiationException - In case the tag instantiation failed.TagBuilder.createTag(DocumentHandler)public void registerAlias(String alias)
registerAlias in interface TagBuilderalias - The alias to register.public void unregisterAlias(String alias)
unregisterAlias in interface TagBuilderalias - The alias to unregister.public Collection getAliases()
getAliases in interface TagBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||