|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectapollo.dataadapter.gamexml.TransactionXMLAdapter
public class TransactionXMLAdapter
This class is used to save and load Transaction objects into XML file.
| Field Summary | |
|---|---|
static java.lang.String |
EXT_NAME
|
protected static org.apache.log4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
TransactionXMLAdapter()
Default constructor. |
|
| Method Summary | |
|---|---|
static void |
loadTransactions(java.lang.String fileName,
CurationSet curation,
CurationState cs)
Loads (new) transactions from a transaction file (transaction file name is derived from XML filename supplied to this method). |
void |
save(java.util.List transactions)
|
void |
save(java.util.List transactions,
boolean writingSeparateFile)
Save a list of Transaction objects into a file. |
void |
setFileName(java.lang.String annotFileName)
|
void |
setWriter(java.io.Writer writer)
If writing to a game file GAMESave passes in the writer for the file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger logger
public static final java.lang.String EXT_NAME
| Constructor Detail |
|---|
public TransactionXMLAdapter()
| Method Detail |
|---|
public void setWriter(java.io.Writer writer)
public void setFileName(java.lang.String annotFileName)
public static void loadTransactions(java.lang.String fileName,
CurationSet curation,
CurationState cs)
throws java.io.IOException
java.io.IOException
public void save(java.util.List transactions)
throws java.io.IOException
java.io.IOException
public void save(java.util.List transactions,
boolean writingSeparateFile)
throws java.io.IOException
transactions - a list of Transactions to be savedwritingSeparateFile - if true writes header & closes Writer when done
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||