org.apache.fop.configuration
Class ConfigurationParser

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.apache.fop.configuration.ConfigurationParser
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class ConfigurationParser
extends DefaultHandler

SAX2 Handler which retrieves the configuration information and stores them in Configuration. Normally this class doesn't need to be accessed directly.


Constructor Summary
ConfigurationParser()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
          extracts characters from text nodes and puts them into their respective variables
 void endElement(String uri, String localName, String qName)
          stores subentries or entries into their hashes (map for subentries, configuration for entry)
 void setDocumentLocator(Locator locator)
          get locator for position information
 void startDocument()
           
 void startElement(String uri, String localName, String qName, Attributes attributes)
          extracts the element and attribute name and sets the fitting status and datatype values
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationParser

public ConfigurationParser()
Method Detail

startDocument

public void startDocument()
Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class DefaultHandler

setDocumentLocator

public void setDocumentLocator(Locator locator)
get locator for position information

Specified by:
setDocumentLocator in interface ContentHandler
Overrides:
setDocumentLocator in class DefaultHandler

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes attributes)
extracts the element and attribute name and sets the fitting status and datatype values

Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
stores subentries or entries into their hashes (map for subentries, configuration for entry)

Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler

characters

public void characters(char[] ch,
                       int start,
                       int length)
extracts characters from text nodes and puts them into their respective variables

Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler


Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.