public interface XMLHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HANDLE_ALL
Used to indicate that all MIME types or XML namespaces are handled.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNamespace() |
void |
handleXML(RendererContext context,
org.w3c.dom.Document doc,
java.lang.String ns)
Handle an external xml document inside a Foreign Object Area.
|
boolean |
supportsRenderer(Renderer renderer)
Checks if this XMLHandler supports handling an XML namespace for a particular renderer.
|
static final java.lang.String HANDLE_ALL
void handleXML(RendererContext context, org.w3c.dom.Document doc, java.lang.String ns) throws java.lang.Exception
Handle an external xml document inside a Foreign Object Area.
This may throw an exception if for some reason it cannot be handled. The caller is expected to deal with this exception.
The implementation may convert the XML document internally to another XML dialect (SVG, for example) and call renderXML() on the AbstractRenderer again (which can be retrieved through the RendererContext).
context
- The RendererContext (contains the user agent)doc
- A DOM containing the foreign object to be
processedns
- The Namespace of the foreign objectjava.lang.Exception
- If an error occurs during processing.boolean supportsRenderer(Renderer renderer)
renderer
- the renderer for which to check.java.lang.String getNamespace()
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.