apollo.dataadapter.gamexml
Class GAMESave

java.lang.Object
  extended by apollo.dataadapter.gamexml.GAMESave

public class GAMESave
extends java.lang.Object


Field Summary
static float gameVersion
          The latest version should be the default (1.1 for 11/05) but this should be a configuration - if DO-ONE-LEVEL-ANNOTS is false this should probably be set to 1.0? move to game adapter?
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
GAMESave()
           
 
Method Summary
static java.lang.String debugName(SeqFeatureI sf)
           
static java.lang.String writeDate(java.lang.String indent, java.util.Date date, java.lang.String value)
          This now converts all dates to GMT, because otherwise, it saves local timezones that it (Java.util.Date) is then unable to parse!
static boolean writeXML(CurationSet curation, java.lang.String file_str, boolean saveAnnots, boolean saveResults, java.lang.String version, boolean game2_format)
          Writes XML If the input type is not FILE, prompts user for a file to save to.
static void writeXML(CurationSet curation, java.lang.String fileName, java.lang.String version, boolean game2_format)
          Save to file name (booleans saveAnnots and saveResults default to true; String "changes" defaults to null)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger

gameVersion

public static float gameVersion
The latest version should be the default (1.1 for 11/05) but this should be a configuration - if DO-ONE-LEVEL-ANNOTS is false this should probably be set to 1.0? move to game adapter?

Constructor Detail

GAMESave

public GAMESave()
Method Detail

writeXML

public static void writeXML(CurationSet curation,
                            java.lang.String fileName,
                            java.lang.String version,
                            boolean game2_format)
Save to file name (booleans saveAnnots and saveResults default to true; String "changes" defaults to null)


writeXML

public static boolean writeXML(CurationSet curation,
                               java.lang.String file_str,
                               boolean saveAnnots,
                               boolean saveResults,
                               java.lang.String version,
                               boolean game2_format)
Writes XML If the input type is not FILE, prompts user for a file to save to.


writeDate

public static java.lang.String writeDate(java.lang.String indent,
                                         java.util.Date date,
                                         java.lang.String value)
This now converts all dates to GMT, because otherwise, it saves local timezones that it (Java.util.Date) is then unable to parse!


debugName

public static java.lang.String debugName(SeqFeatureI sf)