edu.ucsb.nceas.morpho.plugins.xsltresolver
Class XSLTResolverPlugin

java.lang.Object
  extended byedu.ucsb.nceas.morpho.plugins.xsltresolver.XSLTResolverPlugin
All Implemented Interfaces:
PluginInterface, ServiceProvider, XSLTResolverInterface

public class XSLTResolverPlugin
extends java.lang.Object
implements XSLTResolverInterface, PluginInterface, ServiceProvider

Plugin that provides a service to resolve DOCTYPES to XSLT stylesheets


Constructor Summary
XSLTResolverPlugin()
           
 
Method Summary
 java.io.Reader getXSLTStylesheetReader(java.lang.String identifier)
          Required by XSLTResolverInterface: method to return a Reader object, which will provide access to a character-based XSLT stylesheet.
 void initialize(Morpho morpho)
          Required by PluginInterface; called automatically at runtime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSLTResolverPlugin

public XSLTResolverPlugin()
Method Detail

initialize

public void initialize(Morpho morpho)
Required by PluginInterface; called automatically at runtime

Specified by:
initialize in interface PluginInterface
Parameters:
morpho - a reference to the Morpho

getXSLTStylesheetReader

public java.io.Reader getXSLTStylesheetReader(java.lang.String identifier)
                                       throws DocumentNotFoundException
Required by XSLTResolverInterface: method to return a Reader object, which will provide access to a character-based XSLT stylesheet. The stylesheet to be returned is determined based on the unique DOCID String identifier passed to this method. If a stylesheet corresponding to the DOCID cannot be found, a default or generic stylesheet may be returned. If no suitable stylesheet can be returned, a DocumentNotFoundException is thrown

Specified by:
getXSLTStylesheetReader in interface XSLTResolverInterface
Parameters:
identifier - - unique identifier used to determine the stylesheet to return (e.g. DOCTYPE for DTD-defined XML, or schemaLocation or rootnode namespace for XSD-defined XML)
Returns:
a Reader for the character-based XSLT stylesheet. If a stylesheet corresponding to the DOCID cannot be found, a default or generic stylesheet may be returned.
Throws:
DocumentNotFoundException - if no suitable stylesheet is available


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.