org.ujac.print
Interface TagBuilder

All Known Implementing Classes:
AliasTagBuilder, CustomTagBuilder, DefaultTagBuilder

public interface TagBuilder

Name: TagBuilder
Description: Interface for document tag builders.

Author:
lauerc

Field Summary
static String ATTR_TAG_NAME
          Constant for the tagName attribute.
 
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.
 

Field Detail

ATTR_TAG_NAME

static final String ATTR_TAG_NAME
Constant for the tagName attribute.

See Also:
Constant Field Values
Method Detail

getName

String getName()
Gets the name of the tags, this builder creates.

Returns:
The name of the tags, this builder creates.

createTag

BaseDocumentTag createTag(DocumentHandler documentHandler)
                          throws TagInstantiationException
Creates a new tag.

Parameters:
documentHandler - The document handler for which to create the tag instance.
Returns:
The created tag.
Throws:
TagInstantiationException - In case the tag instantiation failed.

registerAlias

void registerAlias(String alias)
Registers an alias for this tag.

Parameters:
alias - The alias to register.

unregisterAlias

void unregisterAlias(String alias)
Unregisters an alias for this tag.

Parameters:
alias - The alias to unregister.

getAliases

Collection getAliases()
Gets all registered aliases.

Returns:
The registered aliases.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.