com.jclark.xsl.dom
Class XMLProcessorImpl
java.lang.Object
com.jclark.xsl.dom.XMLProcessorImpl
- All Implemented Interfaces:
- DOMExtensions, XMLProcessorEx, XMLProcessor
public abstract class XMLProcessorImpl
- extends java.lang.Object
- implements XMLProcessorEx, DOMExtensions
builds a om.Node from a DOM implementation
Method Summary |
Result |
createResult(Node baseNode,
int documentIndex,
LoadContext loadContext,
Node[] rootNodeRef)
|
org.w3c.dom.Element |
getElementById(org.w3c.dom.Document doc,
java.lang.String str)
|
abstract org.w3c.dom.Document |
load(org.xml.sax.InputSource input)
|
Node |
load(org.xml.sax.InputSource source,
int documentIndex,
LoadContext context,
NameTable nameTable)
|
Node |
load(java.net.URL url,
int documentIndex,
LoadContext context,
NameTable nameTable)
construct an object model from the XML source at the
given URL. |
void |
setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLProcessorImpl
public XMLProcessorImpl()
load
public Node load(java.net.URL url,
int documentIndex,
LoadContext context,
NameTable nameTable)
throws java.io.IOException,
XSLException
- Description copied from interface:
XMLProcessor
- construct an object model from the XML source at the
given URL.
- Specified by:
load
in interface XMLProcessor
- Parameters:
url
- the source XMLdocumentIndex
- an internal identifier for this documentnameTable
- initial set of in-scope namespace bindings
- Throws:
java.io.IOException
XSLException
load
public Node load(org.xml.sax.InputSource source,
int documentIndex,
LoadContext context,
NameTable nameTable)
throws java.io.IOException,
XSLException
- Specified by:
load
in interface XMLProcessorEx
- Parameters:
source
- the input to our parserdocumentIndex
- so we can distinguish between nodes in different docscontext
- ??nameTable
- we intern names to avoid wasting menmory
- Throws:
java.io.IOException
XSLException
setErrorHandler
public void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
- Specified by:
setErrorHandler
in interface XMLProcessorEx
load
public abstract org.w3c.dom.Document load(org.xml.sax.InputSource input)
throws java.io.IOException,
org.xml.sax.SAXException
- Throws:
java.io.IOException
org.xml.sax.SAXException
getElementById
public org.w3c.dom.Element getElementById(org.w3c.dom.Document doc,
java.lang.String str)
- Specified by:
getElementById
in interface DOMExtensions
createResult
public Result createResult(Node baseNode,
int documentIndex,
LoadContext loadContext,
Node[] rootNodeRef)
throws XSLException
- Specified by:
createResult
in interface XMLProcessor
- Throws:
XSLException