org.tridas.io.formats.ooxml
Class OOXMLWriter

java.lang.Object
  extended by org.tridas.io.AbstractDendroCollectionWriter
      extended by org.tridas.io.formats.ooxml.OOXMLWriter

public class OOXMLWriter
extends AbstractDendroCollectionWriter


Constructor Summary
OOXMLWriter()
           
 
Method Summary
 IMetadataFieldSet getDefaults()
          Get the default values for this writer.
 String getDescription()
          Get the description of the format
 String getFullName()
          Get the full name of the format
 INamingConvention getNamingConvention()
          Get the naming convention
 String getShortName()
          Get the short name of the format
protected  void parseTridasProject(org.tridas.schema.TridasProject argProject, IMetadataFieldSet argDefaults)
          Parse the project with the given defaults
 void saveFileToDisk(String argOutputFolder, String argFilename, IDendroFile argFile)
          Override to implement own file saving.
 void setNamingConvention(INamingConvention argConvention)
          Set the naming convention.
 
Methods inherited from class org.tridas.io.AbstractDendroCollectionWriter
addToFileList, addWarning, clearFiles, clearWarnings, constructDefaultMetadata, getFileList, getFiles, getWarnings, load, load, load, load, loadProject, loadProject, parseTridasContainer, saveAllToDisk, saveAllToDisk, saveFileToDisk
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OOXMLWriter

public OOXMLWriter()
Method Detail

parseTridasProject

protected void parseTridasProject(org.tridas.schema.TridasProject argProject,
                                  IMetadataFieldSet argDefaults)
                           throws IncompleteTridasDataException,
                                  ConversionWarningException
Description copied from class: AbstractDendroCollectionWriter
Parse the project with the given defaults

Specified by:
parseTridasProject in class AbstractDendroCollectionWriter
Throws:
IncompleteTridasDataException
ConversionWarningException

getDefaults

public IMetadataFieldSet getDefaults()
Description copied from class: AbstractDendroCollectionWriter
Get the default values for this writer.

Specified by:
getDefaults in class AbstractDendroCollectionWriter
Returns:

getDescription

public String getDescription()
Description copied from class: AbstractDendroCollectionWriter
Get the description of the format

Specified by:
getDescription in class AbstractDendroCollectionWriter
Returns:

getFullName

public String getFullName()
Description copied from class: AbstractDendroCollectionWriter
Get the full name of the format

Specified by:
getFullName in class AbstractDendroCollectionWriter
Returns:

getNamingConvention

public INamingConvention getNamingConvention()
Description copied from class: AbstractDendroCollectionWriter
Get the naming convention

Specified by:
getNamingConvention in class AbstractDendroCollectionWriter
Returns:

getShortName

public String getShortName()
Description copied from class: AbstractDendroCollectionWriter
Get the short name of the format

Specified by:
getShortName in class AbstractDendroCollectionWriter
Returns:

setNamingConvention

public void setNamingConvention(INamingConvention argConvention)
Description copied from class: AbstractDendroCollectionWriter
Set the naming convention.

Specified by:
setNamingConvention in class AbstractDendroCollectionWriter

saveFileToDisk

public void saveFileToDisk(String argOutputFolder,
                           String argFilename,
                           IDendroFile argFile)
Description copied from class: AbstractDendroCollectionWriter
Override to implement own file saving. Make sure to respect TridasIO.getWritingCharset().

Overrides:
saveFileToDisk in class AbstractDendroCollectionWriter
Parameters:
argOutputFolder - output folder can be absolute, and always ends with "/" unless it's an empty string
argFilename - filename of the file (without extension)
argFile - a dendro file of this writer


Copyright © 2011. All Rights Reserved.