org.ujac.print
Class AliasTagBuilder

java.lang.Object
  extended by org.ujac.print.AliasTagBuilder
All Implemented Interfaces:
TagBuilder

public class AliasTagBuilder
extends Object
implements TagBuilder

Name: AliasTagBuilder
Description: Tag builder for tag aliases.

Author:
lauerc

Field Summary
 
Fields inherited from interface org.ujac.print.TagBuilder
ATTR_TAG_NAME
 
Constructor Summary
AliasTagBuilder(String name, TagBuilder originalBuilder)
          Constructs a AliasTagBuilder 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

AliasTagBuilder

public AliasTagBuilder(String name,
                       TagBuilder originalBuilder)
Constructs a AliasTagBuilder instance with specific attributes.

Parameters:
name - The name of the tag.
originalBuilder - The original tag builder instance.
Method Detail

getName

public String getName()
Description copied from interface: TagBuilder
Gets the name of the tags, this builder creates.

Specified by:
getName in interface TagBuilder
Returns:
The name of the tags, this builder creates.
See Also:
TagBuilder.getName()

createTag

public BaseDocumentTag createTag(DocumentHandler documentHandler)
                          throws TagInstantiationException
Description copied from interface: TagBuilder
Creates a new tag.

Specified by:
createTag in interface TagBuilder
Parameters:
documentHandler - The document handler for which to create the tag instance.
Returns:
The created tag.
Throws:
TagInstantiationException - In case the tag instantiation failed.
See Also:
TagBuilder.createTag(org.ujac.print.DocumentHandler)

getAliases

public Collection getAliases()
Description copied from interface: TagBuilder
Gets all registered aliases.

Specified by:
getAliases in interface TagBuilder
Returns:
The registered aliases.
See Also:
TagBuilder.getAliases()

registerAlias

public void registerAlias(String alias)
Description copied from interface: TagBuilder
Registers an alias for this tag.

Specified by:
registerAlias in interface TagBuilder
Parameters:
alias - The alias to register.
See Also:
TagBuilder.registerAlias(java.lang.String)

unregisterAlias

public void unregisterAlias(String alias)
Description copied from interface: TagBuilder
Unregisters an alias for this tag.

Specified by:
unregisterAlias in interface TagBuilder
Parameters:
alias - The alias to unregister.
See Also:
TagBuilder.unregisterAlias(java.lang.String)


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