org.ujac.print
Class DocumentHandlerComponentRegistry

java.lang.Object
  extended by org.ujac.print.DocumentHandlerComponentRegistry

public class DocumentHandlerComponentRegistry
extends Object

Name: DocumentHandlerComponentRegistry
Description: A singleton maintaining static resources for the document handler.

Author:
lauerc

Constructor Summary
DocumentHandlerComponentRegistry()
           
 
Method Summary
static DocumentHandlerComponentRegistry getInstance()
          Gets the singleton.
 AttributeDefinitionMap getSupportedAttributes(BaseDocumentTag tag)
          Gets the supported attribute definition map for the given tag instance.
 ChildDefinitionMap getSupportedChilds(BaseDocumentTag tag)
          Gets the supported style attribute definition map for the given tag instance.
 AttributeDefinitionMap getSupportedStyleAttributes(BaseDocumentTag tag)
          Gets the supported style attribute definition map for the given tag instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentHandlerComponentRegistry

public DocumentHandlerComponentRegistry()
Method Detail

getInstance

public static final DocumentHandlerComponentRegistry getInstance()
Gets the singleton.

Returns:
The one and only instance.

getSupportedAttributes

public AttributeDefinitionMap getSupportedAttributes(BaseDocumentTag tag)
Gets the supported attribute definition map for the given tag instance. In case the attribute definitions are already defined, the value from the registry is returned, else the tags buildSupportedAttributes() is called and the created map is registerd and returned.

Parameters:
tag - The tag to get the supported attributes for.
Returns:
The determined supported attribute definitios.

getSupportedStyleAttributes

public AttributeDefinitionMap getSupportedStyleAttributes(BaseDocumentTag tag)
Gets the supported style attribute definition map for the given tag instance. In case the attribute definitions are already defined, the value from the registry is returned, else the tags buildSupportedStyleAttributes() is called and the created map is registerd and returned.

Parameters:
tag - The tag to get the supported attributes for.
Returns:
The determined supported attribute definitios.

getSupportedChilds

public ChildDefinitionMap getSupportedChilds(BaseDocumentTag tag)
Gets the supported style attribute definition map for the given tag instance. In case the attribute definitions are already defined, the value from the registry is returned, else the tags buildSupportedStyleAttributes() is called and the created map is registerd and returned.

Parameters:
tag - The tag to get the supported attributes for.
Returns:
The determined supported attribute definitios.


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