com.hack23.cia.model.impl.sweden.factory
Class SwedenModelFactoryImpl

Package class diagram package SwedenModelFactoryImpl
java.lang.Object
  extended by com.hack23.cia.model.impl.common.AbstractModelFactoryImpl
      extended by com.hack23.cia.model.impl.sweden.factory.SwedenModelFactoryImpl
All Implemented Interfaces:
ModelFactory, SwedenModelFactory

public class SwedenModelFactoryImpl
extends AbstractModelFactoryImpl
implements SwedenModelFactory

The Class SwedenModelFactoryImpl.


Constructor Summary
Constructor and Description
SwedenModelFactoryImpl()
          Instantiates a new sweden model factory impl.
 
Method Summary
Modifier and Type Method and Description
 BallotData createBallotData()
          Creates a new SwedenModel object.
 BallotResultData createBallotResultData()
          Creates a new SwedenModel object.
 CommitteeData createCommitteeData(String name, String shortCode)
          Creates a new SwedenModel object.
 CommitteeReportData createCommitteeReportData(String name, String shortCode, ParliamentYearData parliamentYearData)
          Creates a new SwedenModel object.
 DepartmentData createDepartmentData(String year, String governmentDepartment)
          Creates a new SwedenModel object.
 OperationalStatementData createOperationalStatement(String authoritySubsidyId, String name, String year, OperationalStatementData.Month month, double result)
          Creates a new SwedenModel object.
 ParliamentData createParliamentData()
          Creates a new SwedenModel object.
 ParliamentMemberData createParliamentMember()
          Creates a new SwedenModel object.
 ParliamentMemberBallotRecordData createParliamentMemberBallotRecordData()
          Creates a new SwedenModel object.
 ParliamentMemberVoteCompareResultData createParliamentMemberVoteCompareResult(Date date, int total, float result, ParliamentMemberData parliamentMember, ParliamentMemberData parliamentMember2)
          Creates a new SwedenModel object.
 ParliamentYearData createParliamentYearData()
          Creates a new SwedenModel object.
 PartyBallotResultData createPartyBallotResultData()
          Creates a new SwedenModel object.
 PoliticalPartyData createPoliticalPartyData()
          Creates a new SwedenModel object.
 RegisterInformationData createRegisterInformationData()
          Creates a new SwedenModel object.
 VoteData createVoteData(ParliamentMemberData parliamentMember)
          Creates a new SwedenModel object.
 VoteMetaDataData createVoteParliamentMetaData()
          Creates a new SwedenModel object.
 Class<? extends BallotData> getBallotDataSpec()
          Gets the ballot data spec.
 Class<? extends CommitteeData> getCommitteeDataSpec()
          Gets the committee data spec.
 Class<? extends CommitteeReportData> getCommitteeReportDataSpec()
          Gets the committee report data spec.
 Class<? extends ElectionData> getElectionDataSpec()
          Gets the election data spec.
 Class<? extends ParliamentData> getParliamentDataSpec()
          Gets the parliament data spec.
 Class<? extends ParliamentMemberData> getParliamentMemberDataSpec()
          Gets the parliament member data spec.
 Class<? extends ParliamentMemberVoteCompareResultData> getParliamentMemberVoteCompareResultDataSpec()
          Gets the parliament member vote compare result data spec.
 Class<? extends ParliamentYearData> getParliamentYearDataSpec()
          Gets the parliament year data spec.
 Class<? extends PoliticalPartyData> getPoliticalPartyDataSpec()
          Gets the political party data spec.
 Class<? extends ParliamentData> getTheRiksdagSpec()
          Gets the the riksdag spec.
 Class<? extends VoteData> getVoteDataSpec()
          Gets the vote data spec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwedenModelFactoryImpl

public SwedenModelFactoryImpl()
Instantiates a new sweden model factory impl.

Method Detail

createBallotData

public final BallotData createBallotData()
Description copied from interface: SwedenModelFactory
Creates a new SwedenModel object.

Specified by:
createBallotData in interface SwedenModelFactory
Returns:
the ballot data

createBallotResultData

public final BallotResultData createBallotResultData()
Description copied from interface: SwedenModelFactory
Creates a new SwedenModel object.

Specified by:
createBallotResultData in interface SwedenModelFactory
Returns:
the ballot result data

createCommitteeData

public final CommitteeData createCommitteeData(String name,
                                               String shortCode)
Description copied from interface: SwedenModelFactory
Creates a new SwedenModel object.

Specified by:
createCommitteeData in interface SwedenModelFactory
Parameters:
name - the name
shortCode - the short code
Returns:
the committee data

createCommitteeReportData

public final CommitteeReportData createCommitteeReportData(String name,
                                                           String shortCode,
                                                           ParliamentYearData parliamentYearData)
Description copied from interface: SwedenModelFactory
Creates a new SwedenModel object.

Specified by:
createCommitteeReportData in interface SwedenModelFactory
Parameters:
name - the name
shortCode - the short code
parliamentYearData - the parliament year data
Returns:
the committee report data

createParliamentData

public final ParliamentData createParliamentData()
Description copied from interface: SwedenModelFactory
Creates a new SwedenModel object.

Specified by:
createParliamentData in interface SwedenModelFactory
Returns:
the parliament data

createParliamentMember

public final ParliamentMemberData createParliamentMember()
Description copied from interface: SwedenModelFactory
Creates a new SwedenModel object.

Specified by:
createParliamentMember in interface SwedenModelFactory
Returns:
the parliament member data

createParliamentMemberBallotRecordData

public final ParliamentMemberBallotRecordData createParliamentMemberBallotRecordData()
Description copied from interface: SwedenModelFactory
Creates a new SwedenModel object.

Specified by:
createParliamentMemberBallotRecordData in interface SwedenModelFactory
Returns:
the parliament member ballot record data

createParliamentMemberVoteCompareResult

public final ParliamentMemberVoteCompareResultData createParliamentMemberVoteCompareResult(Date date,
                                                                                           int total,
                                                                                           float result,
                                                                                           ParliamentMemberData parliamentMember,
                                                                                           ParliamentMemberData parliamentMember2)
Description copied from interface: SwedenModelFactory
Creates a new SwedenModel object.

Specified by:
createParliamentMemberVoteCompareResult in interface SwedenModelFactory
Parameters:
date - the date
total - the total
result - the result
parliamentMember - the parliament member
parliamentMember2 - the parliament member2
Returns:
the parliament member vote compare result data

createParliamentYearData

public final ParliamentYearData createParliamentYearData()
Description copied from interface: SwedenModelFactory
Creates a new SwedenModel object.

Specified by:
createParliamentYearData in interface SwedenModelFactory
Returns:
the parliament year data

createPartyBallotResultData

public final PartyBallotResultData createPartyBallotResultData()
Description copied from interface: SwedenModelFactory
Creates a new SwedenModel object.

Specified by:
createPartyBallotResultData in interface SwedenModelFactory
Returns:
the party ballot result data

createPoliticalPartyData

public final PoliticalPartyData createPoliticalPartyData()
Description copied from interface: SwedenModelFactory
Creates a new SwedenModel object.

Specified by:
createPoliticalPartyData in interface SwedenModelFactory
Returns:
the political party data

createRegisterInformationData

public final RegisterInformationData createRegisterInformationData()
Description copied from interface: SwedenModelFactory
Creates a new SwedenModel object.

Specified by:
createRegisterInformationData in interface SwedenModelFactory
Returns:
the register information data

createVoteData

public final VoteData createVoteData(ParliamentMemberData parliamentMember)
Description copied from interface: SwedenModelFactory
Creates a new SwedenModel object.

Specified by:
createVoteData in interface SwedenModelFactory
Parameters:
parliamentMember - the parliament member
Returns:
the vote data

createVoteParliamentMetaData

public final VoteMetaDataData createVoteParliamentMetaData()
Description copied from interface: SwedenModelFactory
Creates a new SwedenModel object.

Specified by:
createVoteParliamentMetaData in interface SwedenModelFactory
Returns:
the vote meta data data

getBallotDataSpec

public final Class<? extends BallotData> getBallotDataSpec()
Description copied from interface: SwedenModelFactory
Gets the ballot data spec.

Specified by:
getBallotDataSpec in interface SwedenModelFactory
Returns:
the ballot data spec

getCommitteeDataSpec

public final Class<? extends CommitteeData> getCommitteeDataSpec()
Description copied from interface: SwedenModelFactory
Gets the committee data spec.

Specified by:
getCommitteeDataSpec in interface SwedenModelFactory
Returns:
the committee data spec

getCommitteeReportDataSpec

public final Class<? extends CommitteeReportData> getCommitteeReportDataSpec()
Description copied from interface: SwedenModelFactory
Gets the committee report data spec.

Specified by:
getCommitteeReportDataSpec in interface SwedenModelFactory
Returns:
the committee report data spec

getElectionDataSpec

public final Class<? extends ElectionData> getElectionDataSpec()
Description copied from interface: SwedenModelFactory
Gets the election data spec.

Specified by:
getElectionDataSpec in interface SwedenModelFactory
Returns:
the election data spec

getParliamentDataSpec

public final Class<? extends ParliamentData> getParliamentDataSpec()
Description copied from interface: SwedenModelFactory
Gets the parliament data spec.

Specified by:
getParliamentDataSpec in interface SwedenModelFactory
Returns:
the parliament data spec

getParliamentMemberDataSpec

public final Class<? extends ParliamentMemberData> getParliamentMemberDataSpec()
Description copied from interface: SwedenModelFactory
Gets the parliament member data spec.

Specified by:
getParliamentMemberDataSpec in interface SwedenModelFactory
Returns:
the parliament member data spec

getParliamentMemberVoteCompareResultDataSpec

public final Class<? extends ParliamentMemberVoteCompareResultData> getParliamentMemberVoteCompareResultDataSpec()
Description copied from interface: SwedenModelFactory
Gets the parliament member vote compare result data spec.

Specified by:
getParliamentMemberVoteCompareResultDataSpec in interface SwedenModelFactory
Returns:
the parliament member vote compare result data spec

getParliamentYearDataSpec

public final Class<? extends ParliamentYearData> getParliamentYearDataSpec()
Description copied from interface: SwedenModelFactory
Gets the parliament year data spec.

Specified by:
getParliamentYearDataSpec in interface SwedenModelFactory
Returns:
the parliament year data spec

getPoliticalPartyDataSpec

public final Class<? extends PoliticalPartyData> getPoliticalPartyDataSpec()
Description copied from interface: SwedenModelFactory
Gets the political party data spec.

Specified by:
getPoliticalPartyDataSpec in interface SwedenModelFactory
Returns:
the political party data spec

getTheRiksdagSpec

public final Class<? extends ParliamentData> getTheRiksdagSpec()
Description copied from interface: SwedenModelFactory
Gets the the riksdag spec.

Specified by:
getTheRiksdagSpec in interface SwedenModelFactory
Returns:
the the riksdag spec

getVoteDataSpec

public final Class<? extends VoteData> getVoteDataSpec()
Description copied from interface: SwedenModelFactory
Gets the vote data spec.

Specified by:
getVoteDataSpec in interface SwedenModelFactory
Returns:
the vote data spec

createOperationalStatement

public OperationalStatementData createOperationalStatement(String authoritySubsidyId,
                                                           String name,
                                                           String year,
                                                           OperationalStatementData.Month month,
                                                           double result)
Description copied from interface: SwedenModelFactory
Creates a new SwedenModel object.

Specified by:
createOperationalStatement in interface SwedenModelFactory
Parameters:
authoritySubsidyId - the authority subsidy id
name - the name
year - the year cell
month - the month
result - the result
Returns:
the operational statement data

createDepartmentData

public DepartmentData createDepartmentData(String year,
                                           String governmentDepartment)
Description copied from interface: SwedenModelFactory
Creates a new SwedenModel object.

Specified by:
createDepartmentData in interface SwedenModelFactory
Parameters:
year - the year
governmentDepartment - the government department
Returns:
the department data


Copyright © 2008-2010 www.hack23.com. All Rights Reserved.