|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gswing.components.input.importer.CsvToXml
public class CsvToXml
Purpose: Converts CSV data files to EML standard XML files.
Field Summary | |
---|---|
protected static String |
CSV
|
protected static String |
XML
|
Constructor Summary | |
---|---|
CsvToXml(IFramework framework,
String path)
Constructor. |
Method Summary | |
---|---|
protected Constituency |
getConstituency(AliasKey constituencyAlias)
Get the constituency details from the database. |
protected Constituency |
getConstituencyFromDb(AliasKey constituencyAlias)
Get the constituency from the database. |
protected String |
getCouncilName()
|
protected String |
getCsvDir()
Get the directory containing CSV files. |
protected String |
getCsvProcessedDir()
Get the directory of CSV processed files. |
protected IDbWriteAccess |
getDbAccess()
Get the insert database access object. |
protected Election |
getElection()
|
protected IFramework |
getFramework()
Allow derived objects access the framework object. |
protected IMessageHandling |
getLogger()
Allow derived objects access the logger. |
protected String |
getXmlDir()
Get the directory containing XML files. |
protected String |
getXmlProcessedDir()
Get the directory of XML processed files. |
protected void |
setCouncilName(String council)
Set the council name the result belong to - if this is a local result. |
protected void |
setElection(Election election)
Set the election the result belongs to. |
void |
startConvert()
Start converting CSV files to XML format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String CSV
protected static final String XML
Constructor Detail |
---|
public CsvToXml(IFramework framework, String path)
framework
- The main framework object.path
- The path to gswing home.Method Detail |
---|
public void startConvert()
protected Constituency getConstituency(AliasKey constituencyAlias)
constituencyAlias
- The constituency alias object.
protected Constituency getConstituencyFromDb(AliasKey constituencyAlias)
constituencyAlias
- Constituency details.
protected String getCsvDir()
protected String getCsvProcessedDir()
protected String getXmlDir()
protected String getXmlProcessedDir()
protected IDbWriteAccess getDbAccess()
protected IFramework getFramework()
protected IMessageHandling getLogger()
protected void setElection(Election election)
election
- The election object.protected void setCouncilName(String council)
council
- The council name.protected Election getElection()
protected String getCouncilName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |