edu.ucsb.nceas.morpho.plugins
Interface XSLTResolverInterface

All Known Implementing Classes:
XSLTResolverPlugin

public interface XSLTResolverInterface

This interface enables access to XSLT stylesheets that are identified by unique String DOCTYPE identifiers.


Method Summary
 java.lang.String getTreeEditorXMLLocation(java.lang.String identifier)
          method to return a String, which will contain the name of the xml file which conatins the structure of schema that can be displayed by the tree editor.
 java.lang.String getXSLTStylesheetLocation(java.lang.String identifier)
          method to return a String, which will contain the name of the dir which conatins the XSLT stylesheets.
 java.io.Reader getXSLTStylesheetReader(java.lang.String docID)
          method to return a Reader object, which will provide access to a character-based XSLT stylesheet.
 

Method Detail

getXSLTStylesheetReader

public java.io.Reader getXSLTStylesheetReader(java.lang.String docID)
                                       throws DocumentNotFoundException
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

Parameters:
docID - a unique DOCID used to determine what stylesheet to return
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

getXSLTStylesheetLocation

public java.lang.String getXSLTStylesheetLocation(java.lang.String identifier)
method to return a String, which will contain the name of the dir which conatins the XSLT stylesheets. The dir 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.

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 String, which will contain the name of the dir which conatins the XSLT stylesheets. If a stylesheet corresponding to the DOCID cannot be found, a default or generic stylesheet may be returned.

getTreeEditorXMLLocation

public java.lang.String getTreeEditorXMLLocation(java.lang.String identifier)
method to return a String, which will contain the name of the xml file which conatins the structure of schema that can be displayed by the tree editor. If a xml file corresponding to the DOCID cannot be found, null is returned.

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 String, which will contain the name of the xml file which conatins the structure of schema that can be displayed by the tree editor. If a xml file corresponding to the DOCID cannot be found, null is returned.


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