org.base.apps.xml.stax
Class StAXElementParser

java.lang.Object
  extended by org.base.apps.xml.AbstractParser<R>
      extended by org.base.apps.xml.stax.AbstractStAXParser<Element>
          extended by org.base.apps.xml.stax.StAXElementParser
All Implemented Interfaces:
Parser<Element>

public class StAXElementParser
extends AbstractStAXParser<Element>

StAX implementation of an Element-generating Parser.

Author:
Kevan Simpson

Constructor Summary
StAXElementParser()
           
StAXElementParser(ElementFactory fac)
           
 
Method Summary
 ElementFactory getElementFactory()
           
protected  void handleCharacters(Characters ch)
           
protected  void handleEndDocument(EndDocument end)
           
protected  void handleEndElement(EndElement end)
           
protected  void handleNamespace(Namespace ns)
           
protected  void handleStartElement(StartElement elem)
           
protected  boolean isNamespace(Attribute attr)
           
protected
<N> N
newNode(Class<N> nodeType)
           
 void setElementFactory(ElementFactory elementFactory)
           
 
Methods inherited from class org.base.apps.xml.stax.AbstractStAXParser
getInputFactory, handleAttribute, handleComment, handleDTD, handleEntityDeclaration, handleEntityReference, handleNotationDeclaration, handleProcessingInstruction, handleStartDocument, parse, setInputFactory
 
Methods inherited from class org.base.apps.xml.AbstractParser
error, getOutput, getOutputStack, getResult, log, setOutput, setOutputStack, setResult, trace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StAXElementParser

public StAXElementParser()

StAXElementParser

public StAXElementParser(ElementFactory fac)
Method Detail

getElementFactory

public ElementFactory getElementFactory()
Returns:
the mElementFactory

setElementFactory

public void setElementFactory(ElementFactory elementFactory)
Parameters:
elementFactory - the elementFactory to set

handleCharacters

protected void handleCharacters(Characters ch)
Overrides:
handleCharacters in class AbstractStAXParser<Element>
See Also:
AbstractStAXParser.handleCharacters(javax.xml.stream.events.Characters)

handleEndDocument

protected void handleEndDocument(EndDocument end)
Overrides:
handleEndDocument in class AbstractStAXParser<Element>
See Also:
AbstractStAXParser.handleEndDocument(javax.xml.stream.events.EndDocument)

handleEndElement

protected void handleEndElement(EndElement end)
Overrides:
handleEndElement in class AbstractStAXParser<Element>
See Also:
AbstractStAXParser.handleEndElement(javax.xml.stream.events.EndElement)

handleNamespace

protected void handleNamespace(Namespace ns)
Overrides:
handleNamespace in class AbstractStAXParser<Element>
See Also:
AbstractStAXParser.handleNamespace(javax.xml.stream.events.Namespace)

handleStartElement

protected void handleStartElement(StartElement elem)
Overrides:
handleStartElement in class AbstractStAXParser<Element>
See Also:
AbstractStAXParser.handleStartElement(javax.xml.stream.events.StartElement)

isNamespace

protected boolean isNamespace(Attribute attr)

newNode

protected <N> N newNode(Class<N> nodeType)

Please visit Base Apps, hosted on Sourceforge.net.

Copyright 2011, Blue Agate Software Entity (BASE)