|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.pax.DOMTreeXMLReader
public class DOMTreeXMLReader
This parser implements the org.xml.sax.Parser interface, but uses a
DOM tree as input rather than a XML stream.
So this class enables developers to use a DOM tree as source for
being handled by a ContentHandler. Of course this also includes to
use a DOM tree as source for the XMLTagInterpreter functionality of PAX.
| Field Summary |
|---|
| Fields inherited from interface org.pf.pax.SAXConstants |
|---|
FEATURE_NAMESPACE_PREFIXES, FEATURE_NAMESPACES, FEATURE_VALIDATING |
| Constructor Summary | |
|---|---|
DOMTreeXMLReader()
Initialize the new instance with default values. |
|
| Method Summary | |
|---|---|
org.xml.sax.ContentHandler |
getContentHandler()
|
org.xml.sax.DTDHandler |
getDTDHandler()
This method is not supported ! |
org.xml.sax.EntityResolver |
getEntityResolver()
This method is not supported ! |
org.xml.sax.ErrorHandler |
getErrorHandler()
This method is not supported ! |
boolean |
getFeature(java.lang.String name)
Returns whether or not the feature with the given name is on. |
java.lang.Object |
getProperty(java.lang.String name)
This method is not supported ! |
void |
parse(org.w3c.dom.Document document)
This method iterates over all elements of the specified DOM document and calls the corresponding callback-methods of its ContentHandler. |
void |
parse(org.xml.sax.InputSource source)
This method is not allowed here, because this parser can handle Document Object Model documents only ! |
void |
parse(java.lang.String systemId)
This method is not allowed here, because this parser can handle Document Object Model documents only ! |
void |
setContentHandler(org.xml.sax.ContentHandler newValue)
Allow an application to register a document event handler. |
void |
setDTDHandler(org.xml.sax.DTDHandler handler)
This method is not supported ! |
void |
setEntityResolver(org.xml.sax.EntityResolver resolver)
This method is not supported ! |
void |
setErrorHandler(org.xml.sax.ErrorHandler handler)
This method is not supported ! |
void |
setFeature(java.lang.String name,
boolean value)
Switch the feature with the given name on or off. |
void |
setLocale(java.util.Locale locale)
This method is not supported ! |
void |
setProperty(java.lang.String name,
java.lang.Object value)
This method is not supported ! |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DOMTreeXMLReader()
| Method Detail |
|---|
public void setContentHandler(org.xml.sax.ContentHandler newValue)
setContentHandler in interface org.xml.sax.XMLReader
public void parse(org.w3c.dom.Document document)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void parse(org.xml.sax.InputSource source)
throws org.xml.sax.SAXException
parse in interface org.xml.sax.XMLReaderorg.xml.sax.SAXException
public void parse(java.lang.String systemId)
throws org.xml.sax.SAXException
parse in interface org.xml.sax.XMLReaderorg.xml.sax.SAXExceptionpublic void setDTDHandler(org.xml.sax.DTDHandler handler)
setDTDHandler in interface org.xml.sax.XMLReaderpublic void setEntityResolver(org.xml.sax.EntityResolver resolver)
setEntityResolver in interface org.xml.sax.XMLReaderpublic void setErrorHandler(org.xml.sax.ErrorHandler handler)
setErrorHandler in interface org.xml.sax.XMLReader
public void setLocale(java.util.Locale locale)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public java.lang.Object getProperty(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
getProperty in interface org.xml.sax.XMLReaderorg.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public void setProperty(java.lang.String name,
java.lang.Object value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
setProperty in interface org.xml.sax.XMLReaderorg.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public boolean getFeature(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
getFeature in interface org.xml.sax.XMLReadername - The name of the feature
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public void setFeature(java.lang.String name,
boolean value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
setFeature in interface org.xml.sax.XMLReaderorg.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedExceptionpublic org.xml.sax.DTDHandler getDTDHandler()
getDTDHandler in interface org.xml.sax.XMLReaderpublic org.xml.sax.ErrorHandler getErrorHandler()
getErrorHandler in interface org.xml.sax.XMLReaderpublic org.xml.sax.EntityResolver getEntityResolver()
getEntityResolver in interface org.xml.sax.XMLReaderpublic org.xml.sax.ContentHandler getContentHandler()
getContentHandler in interface org.xml.sax.XMLReader
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||