org.apache.cocoon.formatter
Class FormatterFactory

java.lang.Object
  |
  +--org.apache.cocoon.framework.AbstractActor
        |
        +--org.apache.cocoon.framework.Router
              |
              +--org.apache.cocoon.formatter.FormatterFactory

public class FormatterFactory
extends Router
implements Defaults

This class implements the formatter factory. This looks for a processing instruction telling which document type we have to work on.

Version:
$Revision: 1.4 $ $Date: 1999/09/13 20:26:00 $
Author:
Stefano Mazzocchi

Fields inherited from class org.apache.cocoon.framework.Router
defaultType, objects
 
Fields inherited from class org.apache.cocoon.framework.AbstractActor
director
 
Fields inherited from interface org.apache.cocoon.Defaults
BROWSERS_PROP, CACHE_DEFAULT, CACHE_PROP, COCOON_FORMAT_PI, COCOON_PROCESS_PI, DEBUG, DEFAULT_BROWSER, FORMATTER_PROP, INIT_ARG, INTERNAL_PROPERTIES, INTERPRETER_PROP, NAME, PARSER_DEFAULT, PARSER_PROP, PROCESSOR_PROP, PRODUCER_PROP, PROPERTIES, SHOW_STATUS, STATUS_URL, STATUS_URL_DEFAULT, STORE_DEFAULT, STORE_PROP, STYLESHEET_PI, VERBOSE, VERSION
 
Constructor Summary
FormatterFactory()
           
 
Method Summary
 Formatter getFormatter(org.w3c.dom.Document document)
           
 java.lang.String getStatus()
          Returns information about the status of the implementing class.
 java.lang.String getType(org.w3c.dom.Document document)
           
 
Methods inherited from class org.apache.cocoon.framework.Router
init
 
Methods inherited from class org.apache.cocoon.framework.AbstractActor
init
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

FormatterFactory

public FormatterFactory()
Method Detail

getFormatter

public Formatter getFormatter(org.w3c.dom.Document document)
                       throws java.lang.Exception

getType

public java.lang.String getType(org.w3c.dom.Document document)

getStatus

public java.lang.String getStatus()
Description copied from interface: Status
Returns information about the status of the implementing class. Note: this is use instead of the usual toString() method because some of these methods are declared final in some classes in JDK 1.1.
Overrides:
getStatus in class Router


Copyright 1999 Java Apache Project. All Rights Reserved.