jd.xml.xpath.model.parse
Class Sax1ParseHandler

java.lang.Object
  extended byjd.xml.xpath.model.parse.ParseHandler
      extended byjd.xml.xpath.model.parse.SaxParseHandler
          extended byjd.xml.xpath.model.parse.Sax1ParseHandler
All Implemented Interfaces:
DocumentHandler, DTDHandler, ModelLocator

public class Sax1ParseHandler
extends SaxParseHandler
implements DocumentHandler

A ParseHandler for SAX 1 Parsers.


Field Summary
 
Fields inherited from class jd.xml.xpath.model.parse.SaxParseHandler
locator_
 
Fields inherited from class jd.xml.xpath.model.parse.ParseHandler
elementInfo_, modelBuilder_, nodeNamePool_, preserveSpaceStack_, preserveWhitespace_, text_
 
Constructor Summary
protected Sax1ParseHandler()
           
  Sax1ParseHandler(Parser parser)
           
 
Method Summary
 void endElement(String name)
          Receive notification of the end of an element.
 EntityResolver getEntityResolver()
           
 Object getParser()
           
 boolean isValidating()
           
protected  void parse(XmlSource source)
           
 void processingInstruction(String target, String data)
          Receive notification of a processing instruction.
 void setEntityResolver(EntityResolver resolver)
           
 void setValidating(boolean validating)
           
 void startElement(String qname, AttributeList atts)
          Receive notification of the beginning of an element.
 
Methods inherited from class jd.xml.xpath.model.parse.SaxParseHandler
characters, endDocument, getInputSource, getLineNumber, ignorableWhitespace, notationDecl, setDocumentLocator, startDocument, unparsedEntityDecl
 
Methods inherited from class jd.xml.xpath.model.parse.ParseHandler
flushTextNode, getNodeName, getNodeName, parse, popPreserveWhitespace, pushPreserveWhitespace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.DocumentHandler
characters, endDocument, ignorableWhitespace, setDocumentLocator, startDocument
 

Constructor Detail

Sax1ParseHandler

protected Sax1ParseHandler()

Sax1ParseHandler

public Sax1ParseHandler(Parser parser)
                 throws SAXException
Method Detail

getParser

public Object getParser()
Specified by:
getParser in class ParseHandler

setValidating

public void setValidating(boolean validating)
Specified by:
setValidating in class ParseHandler

isValidating

public boolean isValidating()
Specified by:
isValidating in class ParseHandler

setEntityResolver

public void setEntityResolver(EntityResolver resolver)
Specified by:
setEntityResolver in class ParseHandler

getEntityResolver

public EntityResolver getEntityResolver()
Specified by:
getEntityResolver in class ParseHandler

parse

protected void parse(XmlSource source)
              throws Exception
Specified by:
parse in class ParseHandler
Throws:
Exception

startElement

public void startElement(String qname,
                         AttributeList atts)
                  throws SAXException
Receive notification of the beginning of an element.

Specified by:
startElement in interface DocumentHandler
Parameters:
qname - The element type name.
atts - The attributes attached to the element, if any.
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.
See Also:
DocumentHandler.endElement(java.lang.String), AttributeList

endElement

public void endElement(String name)
                throws SAXException
Receive notification of the end of an element.

Specified by:
endElement in interface DocumentHandler
Parameters:
name - The element type name
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.

processingInstruction

public void processingInstruction(String target,
                                  String data)
                           throws SAXException
Description copied from interface: DocumentHandler
Receive notification of a processing instruction.

The Parser will invoke this method once for each processing instruction found: note that processing instructions may occur before or after the main document element.

A SAX parser should never report an XML declaration (XML 1.0, section 2.8) or a text declaration (XML 1.0, section 4.3.1) using this method.

Specified by:
processingInstruction in interface DocumentHandler
Parameters:
target - The processing instruction target.
data - The processing instruction data, or null if none was supplied.
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.