org.base.apps.xml.stax
Class StAXElementParser
java.lang.Object
org.base.apps.xml.AbstractParser<R>
org.base.apps.xml.stax.AbstractStAXParser<Element>
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
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StAXElementParser
public StAXElementParser()
StAXElementParser
public StAXElementParser(ElementFactory fac)
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)
Copyright 2011, Blue Agate Software Entity (BASE)