com.simonstl.ool
Class OolRemeshSAXFilter

java.lang.Object
  |
  +--org.xml.sax.helpers.XMLFilterImpl
        |
        +--com.simonstl.ool.OolRemeshSAXFilter
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.XMLFilter, org.xml.sax.XMLReader

public class OolRemeshSAXFilter
extends org.xml.sax.helpers.XMLFilterImpl

This class converts XML documents which use ool elements and attributes in place of embedded markup back into ordinary XML documents.

Version:
0.01 $Date: 2002/04/12 $
Author:
Simon St.Laurent

Constructor Summary
OolRemeshSAXFilter(org.xml.sax.XMLReader parent)
          A constructor that takes the parser which will feed it SAX events
 
Method Summary
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
          Suppresses the end tags of ool elements if necessary.
 boolean getSuppressOol()
          Lets you see whether or not the oolRemeshSAXFilter is going to suppress (true) or report (false) ool elements and attributes.
 void setSuppressOol(boolean _suppressOol)
          By default, the OolRemeshSAXFilter removes all the ool elements and attributes.
 void setText(java.io.Reader reader)
          Sets the text the OolSAXRemeshFilter uses to fill the text back in.
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
          Does most of the work of the filter, adding Characters events where necessary to fill in information represented by ool elements and attributes.
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, 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

OolRemeshSAXFilter

public OolRemeshSAXFilter(org.xml.sax.XMLReader parent)
A constructor that takes the parser which will feed it SAX events
Method Detail

setSuppressOol

public void setSuppressOol(boolean _suppressOol)
By default, the OolRemeshSAXFilter removes all the ool elements and attributes. If you want to keep them, set this to false.

getSuppressOol

public boolean getSuppressOol()
Lets you see whether or not the oolRemeshSAXFilter is going to suppress (true) or report (false) ool elements and attributes.

setText

public void setText(java.io.Reader reader)
             throws java.io.IOException
Sets the text the OolSAXRemeshFilter uses to fill the text back in. This will eventually be replaced by use of the ool:src attribute.

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
Does most of the work of the filter, adding Characters events where necessary to fill in information represented by ool elements and attributes.
Overrides:
startElement in class org.xml.sax.helpers.XMLFilterImpl

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Suppresses the end tags of ool elements if necessary.
Overrides:
endElement in class org.xml.sax.helpers.XMLFilterImpl