class: StructuredExport

public class: StructuredExport
Author: Vlad Makarenko (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 67 $ $LastChangedDate: 2007-12-11 12:39; Complexity: 1
Dates: Created: 16.07.2009 15:20:13; Modified: 16.07.2009 15:20:13;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {3A36DC03-65C8-47d2-8295-CA9A78520C20}
Structured Export Manager. Converts PubMan item-list to one of the structured formats.
 

Goto: Custom Properties, Fields, Methods

Implements: StructuredExportHandler

See also: RestServlet, StructuredExportHandler, StructuredExportTest

Appears in: structuredexportmanager

Connections
 
Custom Properties
 
StructuredExport Attributes
Attribute Details
private static const String
  EXPLAIN_FILE
Initial: "explain-structured-formats.xml"
private static const Logger
  logger
Initial: Logger.getLogger(StructuredExport.class)
private static const String
  PATH_TO_RESOURCES
Initial: "resources/"
private static const String
  PATH_TO_SCHEMAS
Initial: "schemas/"
private static const HashMap
  XSLT_FILE_LIST
Initial: new HashMap() { { put( "ENDNOTE", "eSciDoc_to_EndNote.xsl" ); put( "BIBTEX", "eSciDoc_to_BibTeX.xsl" ); put( "CSV", "Faces_to_CSV.xsl" ); put( "XML", null ); } }
 
StructuredExport Methods
Operation Details
public static
createDocumentBuilder():DocumentBuilder
Sequential
Tags: throws=ParserConfigurationException
Notes: Builds new DocumentBuilder
@return DocumentBuilder
public
explainFormats():String
Sequential
Tags: throws=StructuredExportManagerException
Notes: (non-Javadoc)
@see de.mpg.escidoc.services.exportmanager.StructuredExportHandler#explainFormats()
public
getFormatsHash():HashMap
Sequential
Tags: throws=StructuredExportManagerException
Notes: Generates HashMap of export formats where key is export format id and value is the name of XSLT file of the export implementation
@return
public
getFormatsList():String
Sequential
Tags: throws=StructuredExportManagerException
Notes: (non-Javadoc)
@see de.mpg.escidoc.services.exportmanager.StructuredExportHandler#getFormatsList()
public
getOutput(
   String itemList,
   String exportFormat):byte
Sequential
Tags: throws=StructuredExportXSLTNotFoundException,StructuredExportManagerException
Notes: ( Takes PubMan item-list and converts it to specified exportFormat. Uses XSLT.
@see de.mpg.escidoc.services.endnotemanager.StructuredExportHandler#getOutputString(java.lang.String, java.lang.String)
private
getResource(
   String fileName):InputStream
Sequential
Tags: throws=IOException
Notes: Gets resources according to an execution environment
@return InputStream of resource
public
isStructuredFormat(
   String exportFormat):boolean
Sequential
Tags: throws=StructuredExportManagerException
Notes: (non-Javadoc)
@see de.mpg.escidoc.services.structuredexportmanager.StructuredExportHandler#isStructuredFormat(java.lang.String)
public
StructuredExport():
Sequential