|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectElection.ConfigurationContext
@ThreadSafe public static final class Election.ConfigurationContext
A context for configuring an election. Each election is configured by its configuration file, which contains a script (s) for that purpose. During construction of the election, an instance of this context (electionCC) is passed to s, via s::configureElection(electionCC).
| Method Summary | |
|---|---|
ElectoralSubserver.DatabaseCC |
countDatabase()
The context for configuring the election's count database. |
String |
getDistrictConfigurationPath()
|
long |
getElectorateSize()
|
String |
getElectorateSizeExplanation()
|
String |
getEligibilityScriptPath()
|
String |
getShortTitle()
|
String |
getSummaryDescription()
|
String |
getTitle()
|
String |
name()
|
void |
setDistrictConfigurationPath(String districtConfigurationPath)
Sets the path to the configuration file of this election's district. |
void |
setElectorateSize(long electorateSize)
Sets the estimated size of the electorate. |
void |
setElectorateSizeExplanation(String electorateSizeExplanation)
Sets the electorate size explanation. |
void |
setEligibilityScriptPath(String eligibilityScriptPath)
Sets the path to the eligibility script for the election. |
void |
setShortTitle(String shortTitle)
Sets the short title of the district. |
void |
setSummaryDescription(String summaryDescription)
Sets the summary description of the election. |
void |
setTitle(String title)
Sets the title of the election. |
ElectoralSubserver.DatabaseCC |
voterInputDatabase()
The context for configuring the database of the election's voter input table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public ElectoralSubserver.DatabaseCC countDatabase()
public String getDistrictConfigurationPath()
RegionalElectionNode.district(),
setDistrictConfigurationPath(String)@ThreadRestricted(value="constructor") public void setDistrictConfigurationPath(String districtConfigurationPath)
District.configurationFile(),
RegionalElectionNode.district()public long getElectorateSize()
Election.electorateSize(),
setElectorateSize(long)@ThreadRestricted(value="constructor") public void setElectorateSize(long electorateSize)
Election.electorateSize()public String getElectorateSizeExplanation()
Election.electorateSizeExplanation(),
setElectorateSizeExplanation(String)@ThreadRestricted(value="constructor") public void setElectorateSizeExplanation(String electorateSizeExplanation)
Election.electorateSizeExplanation()public String getEligibilityScriptPath()
Election.eligibilityScript(),
setEligibilityScriptPath(String)@ThreadRestricted(value="constructor") public void setEligibilityScriptPath(String eligibilityScriptPath)
Election.eligibilityScript()public String getShortTitle()
District.shortTitle(),
setShortTitle(String)@ThreadRestricted(value="constructor") public void setShortTitle(String shortTitle)
District.shortTitle()public String getSummaryDescription()
Election.summaryDescription(),
setSummaryDescription(String)@ThreadRestricted(value="constructor") public void setSummaryDescription(String summaryDescription)
IllegalArgumentException - if the description contains
any newline characters, because they might render inconsistently
across different types of user interfaceElection.summaryDescription()public String getTitle()
Election.title(),
setTitle(String)@ThreadRestricted(value="constructor") public void setTitle(String title)
RegionalElectionNode.shortTitle(),
Election.title()public String name()
ElectoralService.name()public ElectoralSubserver.DatabaseCC voterInputDatabase()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||