org.tridas.io.formats.catras
Class CatrasWriter

java.lang.Object
  extended by org.tridas.io.AbstractDendroCollectionWriter
      extended by org.tridas.io.formats.catras.CatrasWriter

public class CatrasWriter
extends AbstractDendroCollectionWriter


Constructor Summary
CatrasWriter()
           
 
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

CatrasWriter

public CatrasWriter()
Method Detail

getDefaults

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

Specified by:
getDefaults in class AbstractDendroCollectionWriter
Returns:
See Also:
org.tridas.io.IDendroCollectionWriter#getDefaults()

getDescription

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

Specified by:
getDescription in class AbstractDendroCollectionWriter
Returns:
See Also:
org.tridas.io.IDendroCollectionWriter#getDescription()

getFullName

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

Specified by:
getFullName in class AbstractDendroCollectionWriter
Returns:
See Also:
org.tridas.io.IDendroCollectionWriter#getFullName()

getNamingConvention

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

Specified by:
getNamingConvention in class AbstractDendroCollectionWriter
Returns:
See Also:
org.tridas.io.IDendroCollectionWriter#getNamingConvention()

getShortName

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

Specified by:
getShortName in class AbstractDendroCollectionWriter
Returns:
See Also:
org.tridas.io.IDendroCollectionWriter#getShortName()

parseTridasProject

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

Specified by:
parseTridasProject in class AbstractDendroCollectionWriter
Throws:
IncompleteTridasDataException

setNamingConvention

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

Specified by:
setNamingConvention in class AbstractDendroCollectionWriter
See Also:
org.tridas.io.IDendroCollectionWriter#setNamingConvention(org.tridas.io.naming.INamingConvention)

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.