|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gswing.utils.xml.XmlReader
org.gswing.utils.xml.XmlWriter
org.gswing.components.common.DbXmlWriter
public class DbXmlWriter
Purpose: Writes election data to an XML file.
Field Summary | |
---|---|
static String |
AFFILIATION
XML AFFILIATION tag. |
static String |
CONTEST
XML CONTEST tag. |
static String |
CONTEST_NAME
XML CONTEST_NAME tag. |
static String |
DATE
XML DATE tag. |
static String |
ELECTION_NAME
XML ELECTION_NAME tag. |
static String |
EVENT
XML EVENT tag. |
static String |
LEADER
XML LEADER tag. |
static String |
LEADER_NAME
XML LEADER_NAME tag. |
static String |
LEADERSHIP
XML LEADERSHIP tag. |
static String |
MAX_VOTES
XML MAX_VOTES tag. |
static String |
OPTION
XML OPTION tag. |
static String |
OPTION_NAME
XML OPTION_NAME tag. |
static String |
PARENT
XML PARENT tag. |
static String |
SYSTEM
XML SYSTEM tag. |
static String |
TYPE
XML TYPE tag. |
static String |
UNKNOWN
Unknown leader string. |
static String |
VALID_VOTES
XML VALID_VOTES tag. |
Constructor Summary | |
---|---|
DbXmlWriter(File file)
Constructor. |
Method Summary | |
---|---|
boolean |
writeToFile(Election election,
Hashtable results,
Vector leaders)
Write the election data to file. |
Methods inherited from class org.gswing.utils.xml.XmlWriter |
---|
getNewDocument, writeToFile |
Methods inherited from class org.gswing.utils.xml.XmlReader |
---|
getDocument, getFile, readFromFile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String EVENT
public static final String DATE
public static final String TYPE
public static final String SYSTEM
public static final String OPTION
public static final String ELECTION_NAME
public static final String PARENT
public static final String CONTEST
public static final String CONTEST_NAME
public static final String MAX_VOTES
public static final String OPTION_NAME
public static final String AFFILIATION
public static final String VALID_VOTES
public static final String LEADERSHIP
public static final String LEADER
public static final String LEADER_NAME
public static final String UNKNOWN
Constructor Detail |
---|
public DbXmlWriter(File file)
file
- The file to be used.Method Detail |
---|
public boolean writeToFile(Election election, Hashtable results, Vector leaders)
election
- The election that the data is to be created for.results
- The hastable of results to write to file.leaders
- Vector of Candidates that are the party leaders for this
election.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |