jd.xml.xpath.model.build.normal
Class NormalModelBuilder

java.lang.Object
  extended byjd.xml.xpath.model.build.ModelBuilder
      extended byjd.xml.xpath.model.build.normal.NormalModelBuilder

public class NormalModelBuilder
extends ModelBuilder

A SAX ContentHandler to build a XPath tree from SAX parse events.


Field Summary
static String MODEL_NAME
           
 
Fields inherited from class jd.xml.xpath.model.build.ModelBuilder
currentNsContext_, currentNsCount_, INITIAL_NSCOUNT
 
Constructor Summary
NormalModelBuilder()
           
 
Method Summary
 void addComment(String data)
          Report an XML comment anywhere in the document.
 void addProcessingInstruction(String target, String data)
          Receive notification of a processing instruction.
 void addText(TextBuffer text)
           
 void addUnparsedEntity(String name, String systemId)
          Receive notification of an unparsed entity declaration event.
 void cleanup()
           
 XPathRootNode endBuild()
          Receive notification of the end of a document.
 void endElement()
          Receive notification of the end of an element.
 void startBuild(String baseUri, NodeNamePool nodeNamePool, int documentId, ModelLocator locator, boolean collectLineNumbers)
          Receive notification of the beginning of a document.
 void startElement(ElementInfo info)
          Receive notification of the beginning of an element.
 
Methods inherited from class jd.xml.xpath.model.build.ModelBuilder
addNamespaceMapping, getNamespaceContext, setNamespaceContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODEL_NAME

public static final String MODEL_NAME
See Also:
Constant Field Values
Constructor Detail

NormalModelBuilder

public NormalModelBuilder()
Method Detail

startBuild

public void startBuild(String baseUri,
                       NodeNamePool nodeNamePool,
                       int documentId,
                       ModelLocator locator,
                       boolean collectLineNumbers)
Receive notification of the beginning of a document.

Specified by:
startBuild in class ModelBuilder

endBuild

public XPathRootNode endBuild()
Receive notification of the end of a document.

Specified by:
endBuild in class ModelBuilder

startElement

public void startElement(ElementInfo info)
Receive notification of the beginning of an element.

Specified by:
startElement in class ModelBuilder

endElement

public void endElement()
Receive notification of the end of an element.

Specified by:
endElement in class ModelBuilder

addProcessingInstruction

public void addProcessingInstruction(String target,
                                     String data)
Receive notification of a processing instruction.

Specified by:
addProcessingInstruction in class ModelBuilder

addComment

public void addComment(String data)
Report an XML comment anywhere in the document.

Specified by:
addComment in class ModelBuilder

addUnparsedEntity

public void addUnparsedEntity(String name,
                              String systemId)
Receive notification of an unparsed entity declaration event.

Specified by:
addUnparsedEntity in class ModelBuilder

addText

public void addText(TextBuffer text)
Specified by:
addText in class ModelBuilder

cleanup

public void cleanup()
Specified by:
cleanup in class ModelBuilder