|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.xsltc.trax.DOM2SAX
public class DOM2SAX
Field Summary | |
---|---|
private org.w3c.dom.Node |
_dom
|
private org.xml.sax.ext.LexicalHandler |
_lex
|
private java.util.Hashtable |
_nsPrefixes
|
private org.xml.sax.ContentHandler |
_sax
|
private SAXImpl |
_saxImpl
|
private static java.lang.String |
EMPTYSTRING
|
private static java.lang.String |
XMLNS_PREFIX
|
Constructor Summary | |
---|---|
DOM2SAX(org.w3c.dom.Node root)
|
Method Summary | |
---|---|
private void |
endPrefixMapping(java.lang.String prefix)
|
int |
getColumnNumber()
This class is only used internally so this method should never be called. |
org.xml.sax.ContentHandler |
getContentHandler()
|
org.xml.sax.DTDHandler |
getDTDHandler()
This class is only used internally so this method should never be called. |
org.xml.sax.EntityResolver |
getEntityResolver()
This class is only used internally so this method should never be called. |
org.xml.sax.ErrorHandler |
getErrorHandler()
This class is only used internally so this method should never be called. |
boolean |
getFeature(java.lang.String name)
This class is only used internally so this method should never be called. |
int |
getLineNumber()
This class is only used internally so this method should never be called. |
private static java.lang.String |
getLocalName(org.w3c.dom.Node node)
If the DOM was created using a DOM 1.0 API, the local name may be null. |
private java.lang.String |
getNodeTypeFromCode(short code)
|
java.lang.Object |
getProperty(java.lang.String name)
This class is only used internally so this method should never be called. |
java.lang.String |
getPublicId()
This class is only used internally so this method should never be called. |
java.lang.String |
getSystemId()
This class is only used internally so this method should never be called. |
void |
parse()
|
void |
parse(org.xml.sax.InputSource unused)
|
private void |
parse(org.w3c.dom.Node node)
Traverse the DOM and generate SAX events for a handler. |
void |
parse(java.lang.String sysId)
This class is only used internally so this method should never be called. |
void |
setContentHandler(org.xml.sax.ContentHandler handler)
|
void |
setDTDHandler(org.xml.sax.DTDHandler handler)
This class is only used internally so this method should never be called. |
void |
setEntityResolver(org.xml.sax.EntityResolver resolver)
This class is only used internally so this method should never be called. |
void |
setErrorHandler(org.xml.sax.ErrorHandler handler)
This class is only used internally so this method should never be called. |
void |
setFeature(java.lang.String name,
boolean value)
This class is only used internally so this method should never be called. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
This class is only used internally so this method should never be called. |
private boolean |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Begin the scope of namespace prefix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String EMPTYSTRING
private static final java.lang.String XMLNS_PREFIX
private org.w3c.dom.Node _dom
private org.xml.sax.ContentHandler _sax
private org.xml.sax.ext.LexicalHandler _lex
private SAXImpl _saxImpl
private java.util.Hashtable _nsPrefixes
Constructor Detail |
---|
public DOM2SAX(org.w3c.dom.Node root)
Method Detail |
---|
public org.xml.sax.ContentHandler getContentHandler()
getContentHandler
in interface org.xml.sax.XMLReader
public void setContentHandler(org.xml.sax.ContentHandler handler) throws java.lang.NullPointerException
setContentHandler
in interface org.xml.sax.XMLReader
java.lang.NullPointerException
private boolean startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
org.xml.sax.SAXException
private void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
org.xml.sax.SAXException
private static java.lang.String getLocalName(org.w3c.dom.Node node)
public void parse(org.xml.sax.InputSource unused) throws java.io.IOException, org.xml.sax.SAXException
parse
in interface org.xml.sax.XMLReader
java.io.IOException
org.xml.sax.SAXException
public void parse() throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
private void parse(org.w3c.dom.Node node) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public org.xml.sax.DTDHandler getDTDHandler()
getDTDHandler
in interface org.xml.sax.XMLReader
public org.xml.sax.ErrorHandler getErrorHandler()
getErrorHandler
in interface org.xml.sax.XMLReader
public boolean getFeature(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
getFeature
in interface org.xml.sax.XMLReader
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.XMLReader
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public void parse(java.lang.String sysId) throws java.io.IOException, org.xml.sax.SAXException
parse
in interface org.xml.sax.XMLReader
java.io.IOException
org.xml.sax.SAXException
public void setDTDHandler(org.xml.sax.DTDHandler handler) throws java.lang.NullPointerException
setDTDHandler
in interface org.xml.sax.XMLReader
java.lang.NullPointerException
public void setEntityResolver(org.xml.sax.EntityResolver resolver) throws java.lang.NullPointerException
setEntityResolver
in interface org.xml.sax.XMLReader
java.lang.NullPointerException
public org.xml.sax.EntityResolver getEntityResolver()
getEntityResolver
in interface org.xml.sax.XMLReader
public void setErrorHandler(org.xml.sax.ErrorHandler handler) throws java.lang.NullPointerException
setErrorHandler
in interface org.xml.sax.XMLReader
java.lang.NullPointerException
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.XMLReader
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public java.lang.Object getProperty(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
getProperty
in interface org.xml.sax.XMLReader
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public int getColumnNumber()
getColumnNumber
in interface org.xml.sax.Locator
public int getLineNumber()
getLineNumber
in interface org.xml.sax.Locator
public java.lang.String getPublicId()
getPublicId
in interface org.xml.sax.Locator
public java.lang.String getSystemId()
getSystemId
in interface org.xml.sax.Locator
private java.lang.String getNodeTypeFromCode(short code)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |