org.apache.fop.util
Class ContentHandlerFactoryRegistry
java.lang.Object
org.apache.fop.util.ContentHandlerFactoryRegistry
public class ContentHandlerFactoryRegistry
extends java.lang.Object
This class holds references to various XML handlers used by FOP. It also
supports automatic discovery of additional XML handlers available through
the class path.
ContentHandlerFactoryRegistry
public ContentHandlerFactoryRegistry()
Default constructor.
addContentHandlerFactory
public void addContentHandlerFactory(String classname)
Add an XML handler. The handler itself is inspected to find out what it supports.
classname
- the fully qualified class name
addContentHandlerFactory
public void addContentHandlerFactory(ContentHandlerFactory factory)
Add an ContentHandlerFactory. The instance is inspected to find out what it supports.
factory
- the ContentHandlerFactory instance
getFactory
public ContentHandlerFactory getFactory(String namespaceURI)
Retrieves a ContentHandlerFactory instance of a given namespace URI.
namespaceURI
- the namespace to be handled.
- the ContentHandlerFactory or null, if no suitable instance is available.
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.