com.jclark.xsl.sax2
Class SAXTwoOMBuilderImpl

java.lang.Object
  extended bycom.jclark.xsl.sax2.SAXTwoOMBuilderImpl
All Implemented Interfaces:
CommentHandler, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, SAXTwoOMBuilder

public class SAXTwoOMBuilderImpl
extends java.lang.Object
implements SAXTwoOMBuilder

constructs an (xslt) XML object model from SAX2 events N.B. Namespaces and NamespacePrefixes parameters should be set to true in the XMLReader


Method Summary
 void characters(char[] ch, int start, int length)
           
 void comment(java.lang.String contents)
          recieve notification that a comment has been encountered in the parse
 void endDocument()
           
 void endElement(java.lang.String namespaceURI, java.lang.String localname, java.lang.String qName)
           
 void endPrefixMapping(java.lang.String prefix)
           
 Node getRootNode()
           
 void ignorableWhitespace(char[] ch, int start, int length)
           
 void init(LoadContext context, java.lang.String systemId, int documentIndex, NamespacePrefixMap nsMap, org.xml.sax.InputSource input)
           
 void notationDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
           
 void processingInstruction(java.lang.String target, java.lang.String data)
           
 void setDocumentLocator(org.xml.sax.Locator locator)
           
 void skippedEntity(java.lang.String entityName)
           
 void startDocument()
           
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
           
 void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
           
 void unparsedEntityDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String notationName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public void init(LoadContext context,
                 java.lang.String systemId,
                 int documentIndex,
                 NamespacePrefixMap nsMap,
                 org.xml.sax.InputSource input)

startDocument

public void startDocument()
Specified by:
startDocument in interface org.xml.sax.ContentHandler

endDocument

public void endDocument()
Specified by:
endDocument in interface org.xml.sax.ContentHandler

setDocumentLocator

public void setDocumentLocator(org.xml.sax.Locator locator)
Specified by:
setDocumentLocator in interface org.xml.sax.ContentHandler

startPrefixMapping

public void startPrefixMapping(java.lang.String prefix,
                               java.lang.String uri)
Specified by:
startPrefixMapping in interface org.xml.sax.ContentHandler

endPrefixMapping

public void endPrefixMapping(java.lang.String prefix)
Specified by:
endPrefixMapping in interface org.xml.sax.ContentHandler

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
Specified by:
characters in interface org.xml.sax.ContentHandler

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)
Specified by:
ignorableWhitespace in interface org.xml.sax.ContentHandler

endElement

public void endElement(java.lang.String namespaceURI,
                       java.lang.String localname,
                       java.lang.String qName)
Specified by:
endElement in interface org.xml.sax.ContentHandler

skippedEntity

public void skippedEntity(java.lang.String entityName)
Specified by:
skippedEntity in interface org.xml.sax.ContentHandler

processingInstruction

public void processingInstruction(java.lang.String target,
                                  java.lang.String data)
Specified by:
processingInstruction in interface org.xml.sax.ContentHandler

comment

public void comment(java.lang.String contents)
Description copied from interface: CommentHandler
recieve notification that a comment has been encountered in the parse

Specified by:
comment in interface CommentHandler

unparsedEntityDecl

public void unparsedEntityDecl(java.lang.String name,
                               java.lang.String publicId,
                               java.lang.String systemId,
                               java.lang.String notationName)
Specified by:
unparsedEntityDecl in interface org.xml.sax.DTDHandler

notationDecl

public void notationDecl(java.lang.String name,
                         java.lang.String publicId,
                         java.lang.String systemId)
Specified by:
notationDecl in interface org.xml.sax.DTDHandler

getRootNode

public Node getRootNode()
Specified by:
getRootNode in interface SAXTwoOMBuilder
Returns:
the root node of the constructed model