com.hack23.cia.model.impl.sweden.configuration
Class Parliament

Package class diagram package Parliament
java.lang.Object
  extended by com.hack23.cia.model.impl.common.BaseEntity
      extended by com.hack23.cia.model.impl.sweden.configuration.Parliament
All Implemented Interfaces:
Actor, Agent, Data, Environment, Group, ModelObject, PersistedModelObject, Resource, ImportedData, ParliamentMappedData, ParliamentData, ParliamentEnvironment, ParliamentGroup, Serializable

@Entity
public class Parliament
extends BaseEntity
implements ParliamentData

The Class Parliament.

See Also:
Serialized Form

Nested Class Summary
Modifier and Type Interface and Description
 
Nested classes/interfaces inherited from interface com.hack23.cia.model.api.sweden.common.ImportedData
ImportedData.ImportStatus
 
Constructor Summary
Constructor and Description
Parliament()
          Instantiates a new parliament.
 
Method Summary
Modifier and Type Method and Description
 void addCommitteeData(CommitteeData committee)
          Adds the committee data.
 void addParliamentYearData(ParliamentYearData parliamentYear)
          Adds the parliament year data.
 boolean containsCommittee(CommitteeData committee)
          Contains committee.
 boolean containsParliamentYear(ParliamentYearData parliamentYear)
          Contains parliament year.
 boolean dataCanBeUpdated()
          Data can be updated.
 boolean generatesParliamentMetaData()
          Generates parliament meta data.
 Role[] getActorDefinedRoles()
          Gets the actor defined roles.
 Role[] getActorRoles()
          Gets the actor roles.
protected  TypeContext getApplicationTypeContext()
          Gets the application type context.
 Committee getCommitteeById(Long id)
          Gets the committee by id.
 Set<Committee> getCommittees()
          Gets the committees.
 Set<CommitteeData> getCommitteesData()
          Gets the committees data.
 String getDescription()
          Gets the description.
 Election getElectionById(Long id)
          Gets the election by id.
 Set<Election> getElections()
          Gets the elections.
 Set<ElectionData> getElectionsData()
          Gets the elections data.
 Long getId()
          Gets the id.
 Date getImportedDate()
          Gets the imported date.
 ImportedData.ImportStatus getImportStatus()
          Gets the import status.
 String getName()
          Gets the name.
 ParliamentMetaData getParliamentMetaData()
          Gets the parliament meta data.
 ParliamentYear getParliamentYearById(Long id)
          Gets the parliament year by id.
 Set<ParliamentYear> getParliamentYears()
          Gets the parliament years.
 Set<ParliamentYearData> getParliamentYearsData()
          Gets the parliament years data.
 ResourceType getResourceType()
          Gets the resource type.
 String getShortCode()
          Gets the short code.
 String getUrl()
          Gets the url.
 Long getVersion()
          Gets the version.
 void setActorDefinedRoles(Role[] roles)
          Sets the actor defined roles.
 void setActorRoles(Role[] roles)
          Sets the actor roles.
 void setCommittees(Set<Committee> committees)
          Sets the committees.
 void setDescription(String description)
          Sets the description.
 void setElections(Set<Election> elections)
          Sets the elections.
 void setId(Long id)
          Sets the id.
 void setImportedDate(Date importedDate)
          Sets the imported date.
 void setImportStatus(ImportedData.ImportStatus importStatus)
          Sets the import status.
 void setName(String name)
          Sets the name.
 void setParliamentYears(Set<ParliamentYear> parliamentYears)
          Sets the parliament years.
 void setResourceType(ResourceType resourceType)
          Sets the resource type.
 void setShortCode(String shortCode)
          Sets the short code.
 void setUrl(String url)
          Sets the url.
 void setVersion(Long version)
          Sets the version.
 
Methods inherited from class com.hack23.cia.model.impl.common.BaseEntity
equals, getTypeContext, hashCode, isNew
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parliament

public Parliament()
Instantiates a new parliament.

Method Detail

addCommitteeData

public void addCommitteeData(CommitteeData committee)
Description copied from interface: ParliamentData
Adds the committee data.

Specified by:
addCommitteeData in interface ParliamentData
Parameters:
committee - the committee

addParliamentYearData

public void addParliamentYearData(ParliamentYearData parliamentYear)
Description copied from interface: ParliamentData
Adds the parliament year data.

Specified by:
addParliamentYearData in interface ParliamentData
Parameters:
parliamentYear - the parliament year

containsCommittee

public boolean containsCommittee(CommitteeData committee)
Description copied from interface: ParliamentData
Contains committee.

Specified by:
containsCommittee in interface ParliamentData
Parameters:
committee - the committee
Returns:
true, if successful

containsParliamentYear

public boolean containsParliamentYear(ParliamentYearData parliamentYear)
Description copied from interface: ParliamentData
Contains parliament year.

Specified by:
containsParliamentYear in interface ParliamentData
Parameters:
parliamentYear - the parliament year
Returns:
true, if successful

dataCanBeUpdated

public boolean dataCanBeUpdated()
Data can be updated.

Specified by:
dataCanBeUpdated in interface ParliamentMappedData
Returns:
true, if successful

generatesParliamentMetaData

public boolean generatesParliamentMetaData()
Generates parliament meta data.

Specified by:
generatesParliamentMetaData in interface ParliamentMappedData
Returns:
true, if successful

getActorDefinedRoles

public Role[] getActorDefinedRoles()
Description copied from interface: Actor
Gets the actor defined roles.

Specified by:
getActorDefinedRoles in interface Actor
Returns:
the actor defined roles

getActorRoles

public Role[] getActorRoles()
Description copied from interface: Actor
Gets the actor roles.

Specified by:
getActorRoles in interface Actor
Returns:
the actor roles

getApplicationTypeContext

protected TypeContext getApplicationTypeContext()
Description copied from class: BaseEntity
Gets the application type context.

Specified by:
getApplicationTypeContext in class BaseEntity
Returns:
the application type context

getCommitteeById

public Committee getCommitteeById(Long id)
Gets the committee by id.

Parameters:
id - the id
Returns:
the committee by id

getCommittees

public Set<Committee> getCommittees()
Gets the committees.

Returns:
the committees

getCommitteesData

public Set<CommitteeData> getCommitteesData()
Description copied from interface: ParliamentData
Gets the committees data.

Specified by:
getCommitteesData in interface ParliamentData
Returns:
the committees data

getDescription

public String getDescription()
Gets the description.

Returns:
the description

getElectionById

public Election getElectionById(Long id)
Gets the election by id.

Parameters:
id - the id
Returns:
the election by id

getElections

public Set<Election> getElections()
Gets the elections.

Returns:
the elections

getElectionsData

public Set<ElectionData> getElectionsData()
Gets the elections data.

Returns:
the elections data

getId

public Long getId()
Description copied from class: BaseEntity
Gets the id.

Specified by:
getId in interface PersistedModelObject
Specified by:
getId in class BaseEntity
Returns:
the id

getImportedDate

public Date getImportedDate()
Description copied from interface: ImportedData
Gets the imported date.

Specified by:
getImportedDate in interface ImportedData
Returns:
the imported date

getImportStatus

public ImportedData.ImportStatus getImportStatus()
Description copied from interface: ImportedData
Gets the import status.

Specified by:
getImportStatus in interface ImportedData
Returns:
the import status

getName

public String getName()
Description copied from interface: Actor
Gets the name.

Specified by:
getName in interface Actor
Specified by:
getName in interface Environment
Returns:
the name

getParliamentMetaData

public ParliamentMetaData getParliamentMetaData()
Gets the parliament meta data.

Specified by:
getParliamentMetaData in interface ParliamentMappedData
Returns:
the parliament meta data

getParliamentYearById

public ParliamentYear getParliamentYearById(Long id)
Gets the parliament year by id.

Parameters:
id - the id
Returns:
the parliament year by id

getParliamentYears

public Set<ParliamentYear> getParliamentYears()
Gets the parliament years.

Returns:
the parliament years

getParliamentYearsData

public Set<ParliamentYearData> getParliamentYearsData()
Description copied from interface: ParliamentData
Gets the parliament years data.

Specified by:
getParliamentYearsData in interface ParliamentData
Returns:
the parliament years data

getResourceType

public ResourceType getResourceType()
Description copied from interface: Resource
Gets the resource type.

Specified by:
getResourceType in interface Resource
Returns:
the resource type

getShortCode

public String getShortCode()
Gets the short code.

Returns:
the short code

getUrl

public String getUrl()
Gets the url.

Returns:
the url

getVersion

public Long getVersion()
Description copied from class: BaseEntity
Gets the version.

Specified by:
getVersion in interface PersistedModelObject
Specified by:
getVersion in class BaseEntity
Returns:
the version

setActorDefinedRoles

public void setActorDefinedRoles(Role[] roles)
Description copied from interface: Actor
Sets the actor defined roles.

Specified by:
setActorDefinedRoles in interface Actor
Parameters:
roles - the new actor defined roles

setActorRoles

public void setActorRoles(Role[] roles)
Description copied from interface: Actor
Sets the actor roles.

Specified by:
setActorRoles in interface Actor
Parameters:
roles - the new actor roles

setCommittees

public void setCommittees(Set<Committee> committees)
Sets the committees.

Parameters:
committees - the new committees

setDescription

public void setDescription(String description)
Sets the description.

Parameters:
description - the new description

setElections

public void setElections(Set<Election> elections)
Sets the elections.

Parameters:
elections - the new elections

setId

public void setId(Long id)
Description copied from interface: PersistedModelObject
Sets the id.

Specified by:
setId in interface PersistedModelObject
Parameters:
id - the new id

setImportedDate

public void setImportedDate(Date importedDate)
Description copied from interface: ImportedData
Sets the imported date.

Specified by:
setImportedDate in interface ImportedData
Parameters:
importedDate - the new imported date

setImportStatus

public void setImportStatus(ImportedData.ImportStatus importStatus)
Description copied from interface: ImportedData
Sets the import status.

Specified by:
setImportStatus in interface ImportedData
Parameters:
importStatus - the new import status

setName

public void setName(String name)
Description copied from interface: Actor
Sets the name.

Specified by:
setName in interface Actor
Specified by:
setName in interface Environment
Parameters:
name - the new name

setParliamentYears

public void setParliamentYears(Set<ParliamentYear> parliamentYears)
Sets the parliament years.

Parameters:
parliamentYears - the new parliament years

setResourceType

public void setResourceType(ResourceType resourceType)
Sets the resource type.

Parameters:
resourceType - the new resource type

setShortCode

public void setShortCode(String shortCode)
Sets the short code.

Parameters:
shortCode - the new short code

setUrl

public void setUrl(String url)
Sets the url.

Parameters:
url - the new url

setVersion

public void setVersion(Long version)
Description copied from interface: PersistedModelObject
Sets the version.

Specified by:
setVersion in interface PersistedModelObject
Parameters:
version - the new version


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