Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.ujac.print
Class DocumentTagFactory  view DocumentTagFactory download DocumentTagFactory.java

java.lang.Object
  extended byorg.ujac.print.DocumentTagFactory

public class DocumentTagFactory
extends java.lang.Object

Name: DocumentTagFactory.java
Description: Description of class.

Log: $Log: DocumentTagFactory.java,v $
Log: Revision 1.13 2003/12/07 23:53:33 lauerc
Log: Added support for tags 'print-footer-row', 'print-group-row' and 'print-group-title-row'
Log:
Log: Revision 1.12 2003/12/03 07:33:28 lauerc
Log: Added support for print-header-row tag.
Log:
Log: Revision 1.11 2003/11/27 01:17:07 lauerc
Log: Added support for types: chapter, annotation, anchor, list, list-symbol, list-item and meta.
Log:
Log: Revision 1.10 2003/11/23 17:30:48 lauerc
Log: Added missing javadoc tags.
Log: Cleaned up code.
Log:
Log: Revision 1.9 2003/11/23 14:02:39 lauerc
Log: Renamed tag 'cell-style' to 'row-cell'.
Log:
Log: Revision 1.8 2003/11/23 02:59:59 lauerc
Log: Added support for tags print-table, print-rows and cell-style.
Log:
Log: Revision 1.7 2003/11/22 01:36:35 lauerc
Log: Added support for set-property tag.
Log:
Log: Revision 1.6 2003/11/21 01:17:02 lauerc
Log: Added support for tag 'resource-bundle'.
Log:
Log: Revision 1.5 2003/11/01 12:05:21 lauerc
Log: Added copyright notice.
Log:
Log: Revision 1.4 2003/10/16 17:09:38 lauerc
Log: Added support for tag class DateFormatTag.
Log:
Log: Revision 1.3 2003/10/07 23:49:36 lauerc
Log: Added support for item tags.
Log:
Log: Revision 1.2 2003/09/29 22:53:05 lauerc
Log: Allowed to define specific tag handlers, to enable users to extend the default tag set.
Log:
Log: Revision 1.1 2003/09/29 21:11:58 lauerc
Log: Renamed DocumentItemFactory to DocumentTagFactory.
Log:
Log: Revision 1.28 2003/09/02 20:06:51 lauerc
Log: Added support for set-format item.
Log:
Log: Revision 1.27 2003/07/24 07:12:28 lauerc
Log: Added support for 'outline' item.
Log:
Log: Revision 1.26 2003/07/10 23:03:02 lauerc
Log: Fixed indention.
Log:
Log: Revision 1.25 2003/07/09 22:21:26 lauerc
Log: Moved XML Schema generating code from DocumentTagFactory to this class to class XmlSchemaGenerator.
Log: Moved DTD generating code from DocumentTagFactory to class DtdGenerator.
Log:
Log: Revision 1.24 2003/07/06 22:06:14 lauerc
Log: Renamed MacroParamDefItem to ParameterDefTag.
Log: Renamed MacroParamItem to ParameterTag.
Log:
Log: Revision 1.23 2003/07/03 04:48:58 lauerc
Log: Added support for macros and import item.
Log:
Log: Revision 1.22 2003/06/29 23:02:28 lauerc
Log: Added support for barcode item.
Log:
Log: Revision 1.21 2003/06/15 13:05:01 lauerc
Log: Changed import ordering.
Log:
Log: Revision 1.20 2003/05/26 06:53:07 lauerc
Log: Added initial support for charts (package org.ujac.chart).
Log:
Log: Revision 1.19 2003/05/20 21:24:39 lauerc
Log: Enhanced child declaration: Just added the base type of a group of items (e.g. BaseFontTag).
Log: This provides automatic support of new classes which extend specific supported items.
Log:
Log: Revision 1.18 2003/05/10 09:25:28 lauerc
Log: Added support for number-format item.
Log:
Log: Revision 1.17 2003/05/07 22:43:04 lauerc
Log: Added support for cell-block item.
Log:
Log: Revision 1.16 2003/04/26 16:31:55 lauerc
Log: Added support for item 'table-split'.
Log:
Log: Revision 1.15 2003/04/26 00:47:29 lauerc
Log: Added support for item 'space'.
Log:
Log: Revision 1.14 2003/04/26 00:19:55 lauerc
Log: Added support for the 'new-line' item.
Log:
Log: Revision 1.13 2003/04/25 06:41:34 lauerc
Log: Added support for items switch, case and default.
Log:
Log: Revision 1.12 2003/04/08 23:49:52 lauerc
Log: Added BoldTag, ItalicTag and UnderlineTag.
Log:
Log: Revision 1.11 2003/04/07 23:08:22 lauerc
Log: Added support for items header-part and footer-part.
Log:
Log: Revision 1.10 2003/04/06 20:07:39 lauerc
Log: Added support for new-page item.
Log:
Log: Revision 1.9 2003/04/05 15:46:56 lauerc
Log: Added support for header and footer item.
Log:
Log: Revision 1.8 2003/04/05 09:32:28 lauerc
Log: Fixed method generateXmlSchema, added method generateDtd.
Log:
Log: Revision 1.7 2003/04/01 06:43:27 lauerc
Log: Further work on method generateXmlSchema.
Log:
Log: Revision 1.6 2003/03/31 15:27:34 lauerc
Log: Added support for foreach item.
Log:
Log: Revision 1.5 2003/03/30 13:32:25 lauerc
Log: Added support for if, else and font-def item.
Log:
Log: Revision 1.4 2003/03/28 09:02:59 lauerc
Log: Added support for PDF items.
Log:
Log: Revision 1.3 2003/03/27 10:29:37 lauerc
Log: Added support for types table and cell.
Log:
Log: Revision 1.2 2003/03/27 01:53:25 lauerc
Log: Further progress in printing stuff.
Log:
Log: Revision 1.1 2003/03/26 07:50:57 lauerc
Log: Initial revision.
Log:

Version:
$Revision: 1.13 $

Field Summary
private static DocumentTagFactory DEFAULT_INSTANCE
          The default tag factory.
private  java.util.Map tagTypes
          The tag map.
 
Constructor Summary
DocumentTagFactory()
          Constructs a DocumentTagFactory instance with no specific attributes.
 
Method Summary
 BaseDocumentTag createTagInstance(DocumentHandler documentHandler, java.lang.String name)
          Gets a new tag instance for the given tag name.
protected  java.util.List getAllPossibleChilds()
          Gets all possible childs
static DocumentTagFactory getDefaultInstance()
          Gets the default tag factory.
 java.util.List getSupportedChildTags(BaseDocumentTag tag)
          Finds the supported child tags using the tag informations from the methods getSupportedChilds and getExcludedChilds.
protected  java.util.Map getTagTypes()
          Gets all registered tag types.
private  void registerDefaultTags()
          Registers the default document tags.
 void registerTag(java.lang.Class tagClazz)
          Registers the given document tag.
 void unregisterTag(java.lang.Class tagClazz)
          Unregisters the given document tag.
 void unregisterTag(java.lang.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
 

Field Detail

DEFAULT_INSTANCE

private static final DocumentTagFactory DEFAULT_INSTANCE
The default tag factory.


tagTypes

private final java.util.Map tagTypes
The tag map.

Constructor Detail

DocumentTagFactory

public DocumentTagFactory()
Constructs a DocumentTagFactory instance with no specific attributes.

Method Detail

getDefaultInstance

public static final DocumentTagFactory getDefaultInstance()
Gets the default tag factory.


createTagInstance

public final BaseDocumentTag createTagInstance(DocumentHandler documentHandler,
                                               java.lang.String name)
                                        throws TagInstantiationException
Gets a new tag instance for the given tag name.


registerTag

public final void registerTag(java.lang.Class tagClazz)
Registers the given document tag.


unregisterTag

public final void unregisterTag(java.lang.String tagName)
Unregisters the given document tag.


unregisterTag

public final void unregisterTag(java.lang.Class tagClazz)
Unregisters the given document tag.


registerDefaultTags

private final void registerDefaultTags()
Registers the default document tags.


getTagTypes

protected final java.util.Map getTagTypes()
Gets all registered tag types.


getAllPossibleChilds

protected final java.util.List getAllPossibleChilds()
                                             throws TagInstantiationException
Gets all possible childs


getSupportedChildTags

public java.util.List getSupportedChildTags(BaseDocumentTag tag)
                                     throws TagInstantiationException
Finds the supported child tags using the tag informations from the methods getSupportedChilds and getExcludedChilds.