org.apache.crimson.tree
Class XmlDocumentBuilderNS

java.lang.Object
  extended byorg.apache.crimson.tree.XmlDocumentBuilder
      extended byorg.apache.crimson.tree.XmlDocumentBuilderNS
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.ext.DeclHandler, org.xml.sax.DTDHandler, org.xml.sax.ext.LexicalHandler

public class XmlDocumentBuilderNS
extends XmlDocumentBuilder

This class implements a Namespace aware DOM tree builder which uses NS versions of the DOM Level 2 create methods and assumes disableNamespaces is false, ie. JAXP namespaceAware is true.


Field Summary
 
Fields inherited from class org.apache.crimson.tree.XmlDocumentBuilder
document, elementStack, locator, topOfStack
 
Constructor Summary
XmlDocumentBuilderNS()
           
 
Method Summary
 void externalEntityDecl(String name, String publicId, String systemId)
          Report a parsed external entity declaration.
 void internalEntityDecl(String name, String value)
          Report an internal entity declaration.
 void notationDecl(String n, String p, String s)
          Receive notification of a notation declaration event.
 void processingInstruction(String name, String instruction)
          Receive notification of a processing instruction.
 void startElement(String namespaceURI, String localName, String qName, org.xml.sax.Attributes attributes)
          Receive notification of the beginning of an element.
 void unparsedEntityDecl(String name, String publicId, String systemId, String notation)
          Receive notification of an unparsed entity declaration event.
 
Methods inherited from class org.apache.crimson.tree.XmlDocumentBuilder
attributeDecl, characters, chooseLocale, comment, createDocument, elementDecl, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, getDisableNamespaces, getDocument, getElementFactory, getLocale, getMessage, getMessage, ignorableWhitespace, isIgnoringLexicalInfo, setDisableNamespaces, setDocumentLocator, setElementFactory, setExpandEntityReferences, setIgnoreComments, setIgnoreWhitespace, setIgnoringLexicalInfo, setLocale, setPutCDATAIntoText, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlDocumentBuilderNS

public XmlDocumentBuilderNS()
Method Detail

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Receive notification of the beginning of an element.

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class XmlDocumentBuilder
Throws:
org.xml.sax.SAXException

processingInstruction

public void processingInstruction(String name,
                                  String instruction)
                           throws org.xml.sax.SAXException
Receive notification of a processing instruction.

Specified by:
processingInstruction in interface org.xml.sax.ContentHandler
Overrides:
processingInstruction in class XmlDocumentBuilder
Throws:
org.xml.sax.SAXException

internalEntityDecl

public void internalEntityDecl(String name,
                               String value)
                        throws org.xml.sax.SAXException
Report an internal entity declaration.

Specified by:
internalEntityDecl in interface org.xml.sax.ext.DeclHandler
Overrides:
internalEntityDecl in class XmlDocumentBuilder
Throws:
org.xml.sax.SAXException

externalEntityDecl

public void externalEntityDecl(String name,
                               String publicId,
                               String systemId)
                        throws org.xml.sax.SAXException
Report a parsed external entity declaration.

Specified by:
externalEntityDecl in interface org.xml.sax.ext.DeclHandler
Overrides:
externalEntityDecl in class XmlDocumentBuilder
Throws:
org.xml.sax.SAXException

notationDecl

public void notationDecl(String n,
                         String p,
                         String s)
                  throws org.xml.sax.SAXException
Receive notification of a notation declaration event.

Specified by:
notationDecl in interface org.xml.sax.DTDHandler
Overrides:
notationDecl in class XmlDocumentBuilder
Throws:
org.xml.sax.SAXException

unparsedEntityDecl

public void unparsedEntityDecl(String name,
                               String publicId,
                               String systemId,
                               String notation)
                        throws org.xml.sax.SAXException
Receive notification of an unparsed entity declaration event.

Specified by:
unparsedEntityDecl in interface org.xml.sax.DTDHandler
Overrides:
unparsedEntityDecl in class XmlDocumentBuilder
Throws:
org.xml.sax.SAXException