Package org.apache.xmlbeans
Interface XmlSaxHandler
-
public interface XmlSaxHandler
A holder for a SAXContentHandler
andLexicalHandler
that are capable of loading anXmlObject
instance. Once all the SAX events are pushed to the handlers, callgetObject()
to get the loaded XmlObject.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
bookmarkLastAttr(javax.xml.namespace.QName attrName, XmlCursor.XmlBookmark mark)
Insert a bookmark before the attr token associated with the last SAX element event.void
bookmarkLastEvent(XmlCursor.XmlBookmark mark)
Insert a bookmark before the token associated with the last SAX event.org.xml.sax.ContentHandler
getContentHandler()
The ContentHandler expecting SAX content events.org.xml.sax.ext.LexicalHandler
getLexicalHandler()
The LexicalHandler expecting SAX lexical events.XmlObject
getObject()
Returns the loaded XmlObject after all the SAX events have been finished
-
-
-
Method Detail
-
getContentHandler
org.xml.sax.ContentHandler getContentHandler()
The ContentHandler expecting SAX content events.- See Also:
ContentHandler
-
getLexicalHandler
org.xml.sax.ext.LexicalHandler getLexicalHandler()
The LexicalHandler expecting SAX lexical events.- See Also:
LexicalHandler
-
bookmarkLastEvent
void bookmarkLastEvent(XmlCursor.XmlBookmark mark)
Insert a bookmark before the token associated with the last SAX event.
-
bookmarkLastAttr
void bookmarkLastAttr(javax.xml.namespace.QName attrName, XmlCursor.XmlBookmark mark)
Insert a bookmark before the attr token associated with the last SAX element event.
-
getObject
XmlObject getObject() throws XmlException
Returns the loaded XmlObject after all the SAX events have been finished- Throws:
XmlException
-
-