com.aurigalogic.aurigadoc.core
Class FOCSSHandler

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--com.aurigalogic.aurigadoc.core.FOCSSHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class FOCSSHandler
extends org.xml.sax.helpers.DefaultHandler

This class implements a SAX handler for catching sax events while parsing AurigaDoc document. Handles stylesheet for fo related formats.

Version:
$Revision: 1.4 $ $Date: 2003/09/16 08:03:00 $
Author:
Khurshidali Shaikh

Constructor Summary
FOCSSHandler(java.lang.String input, java.lang.String output)
          Constructor.
 
Method Summary
 java.lang.String getCssTreeFile()
          Returns the path of the cssTree file
 boolean isCssPresent()
          Returns is a css is present in the input document.
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName, org.xml.sax.Attributes atts)
          Handles the start of an element.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FOCSSHandler

public FOCSSHandler(java.lang.String input,
                    java.lang.String output)
             throws java.lang.Exception
Constructor.

Parameters:
input - the input document
output - the output document
Throws:
java.lang.Exception - is an error occurs
Method Detail

isCssPresent

public boolean isCssPresent()
Returns is a css is present in the input document.

Returns:
whether a css is present in the src document.

getCssTreeFile

public java.lang.String getCssTreeFile()
Returns the path of the cssTree file

Returns:
the css tree file path

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String localName,
                         java.lang.String rawName,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
Handles the start of an element.

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
namespaceURI - the name space uri
localName - the local name of the element
rawName - the raw name of the element
atts - the element attributes
Throws:
org.xml.sax.SAXException - in case of a parsing error


Copyright © 2000, 2003 Auriga Logic Pvt. Ltd. All Rights Reserved.