|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.print.DefaultDocumentTagFactory
public class DefaultDocumentTagFactory
Name: DefaultDocumentTagFactory
Description: Default document tag factory implementation.
Constructor Summary | |
---|---|
DefaultDocumentTagFactory()
Constructs a DefaultDocumentTagFactory instance with no specific attributes. |
Method Summary | |
---|---|
BaseDocumentTag |
createTagInstance(DocumentHandler documentHandler,
String name)
Gets a new tag instance for the given tag name. |
List |
getAllPossibleChilds()
Gets all possible childs |
static DocumentTagFactory |
getInstance()
Gets the default tag factory. |
List |
getSupportedChildTags(BaseDocumentTag tag)
Finds the supported child tags using the tag informations from the methods getSupportedChilds and getExcludedChilds. |
Map |
getTagTypes()
Gets all registered tag types. |
boolean |
isTagSupported(String name)
Checks wheter the given tag is supported or not. |
protected void |
registerDefaultTags()
Registers the default document tags. |
void |
registerTag(String name,
Class tagClazz)
Registers the given document tag. |
void |
registerTag(String name,
TagBuilder tagBuilder)
Registers the given document tag. |
void |
registerTagAlias(String tagName,
String alias)
Registers an alias for the given document tag. |
void |
unregisterTag(String tagName)
Unregisters the given document tag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDocumentTagFactory()
Method Detail |
---|
public static final DocumentTagFactory getInstance()
public final BaseDocumentTag createTagInstance(DocumentHandler documentHandler, String name) throws TagInstantiationException
createTagInstance
in interface DocumentTagFactory
documentHandler
- The document handler for which the item is created.name
- The tag name.
TagInstantiationException
- If the no tag type with the requested name is defined.public final boolean isTagSupported(String name)
isTagSupported
in interface DocumentTagFactory
name
- The tag name to check.
public final void registerTag(String name, Class tagClazz)
registerTag
in interface DocumentTagFactory
name
- The name of the tag to register.tagClazz
- The tag class to register.public final void registerTag(String name, TagBuilder tagBuilder)
registerTag
in interface DocumentTagFactory
name
- The name of the tag to register.tagBuilder
- The tag builder, which will build the tag handlers for the given name.public final void unregisterTag(String tagName)
unregisterTag
in interface DocumentTagFactory
tagName
- The name of the tag to unregisterpublic void registerTagAlias(String tagName, String alias) throws TagInstantiationException
registerTagAlias
in interface DocumentTagFactory
tagName
- The name of the tag to register the alias for.alias
- The name of the alias to register.
TagInstantiationException
- In case the original tag does not exist
or has not been specified so far.protected void registerDefaultTags()
public Map getTagTypes()
getTagTypes
in interface DocumentTagFactory
public List getAllPossibleChilds() throws TagInstantiationException
getAllPossibleChilds
in interface DocumentTagFactory
TagInstantiationException
- In case the instantiation of a tag has been failed.public List getSupportedChildTags(BaseDocumentTag tag) throws TagInstantiationException
getSupportedChildTags
in interface DocumentTagFactory
tag
- The tag to find the childs for.
TagInstantiationException
- In case the method DefaultDocumentTagFactory.getAllPossibleChilds
failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |