Election.java :  » App » civilobedience » org » votesmart » election » Android Open Source

Android Open Source » App » civilobedience 
civilobedience » org » votesmart » election » Election.java
package org.votesmart.election;

import java.util.List;

import org.votesmart.HeldOffice;

public class Election {

  public static String DefaultQueryMethod = "getElection";
  
  /*
  elections.election*.electionId
  elections.election*.name
  elections.election*.stateId
  elections.election*.officeTypeId
  elections.election*.special
  elections.election*.electionYear
  elections.election*.stage*.stageId
  elections.election*.stage*.name
  elections.election*.stage*.stateId
  elections.election*.stage*.electionDate
  elections.election*.stage*.filingDeadline
  elections.election*.stage*.npatMailed
  */

  private Long electionId;
  private String name;
  private String stateId;
  private String officeTypeId;
  private String special;
  private String electionYear;
  
  private List<Stage> stage;
  
  /*
    bio.election*.office
    bio.election*.officeId
    bio.election*.officeType
    bio.election*.parties
    bio.election*.district
    bio.election*.status
    bio.election*.ballotName
   */

  private HeldOffice office;
  private String parties;
  private String district;
  private String status;
  private String ballotName;
  
  /**
   * @return the electionId
   */
  public Long getElectionId() {
    return electionId;
  }

  /**
   * @param electionId the electionId to set
   */
  public void setElectionId(Long electionId) {
    this.electionId = electionId;
  }

  /**
   * @return the name
   */
  public String getName() {
    return name;
  }

  /**
   * @param name the name to set
   */
  public void setName(String name) {
    this.name = name;
  }

  /**
   * @return the stateId
   */
  public String getStateId() {
    return stateId;
  }

  /**
   * @param stateId the stateId to set
   */
  public void setStateId(String stateId) {
    this.stateId = stateId;
  }

  /**
   * @return the officeTypeId
   */
  public String getOfficeTypeId() {
    return officeTypeId;
  }

  /**
   * @param officeTypeId the officeTypeId to set
   */
  public void setOfficeTypeId(String officeTypeId) {
    this.officeTypeId = officeTypeId;
  }

  /**
   * @return the special
   */
  public String getSpecial() {
    return special;
  }

  /**
   * @param special the special to set
   */
  public void setSpecial(String special) {
    this.special = special;
  }

  /**
   * @return the electionYear
   */
  public String getElectionYear() {
    return electionYear;
  }

  /**
   * @param electionYear the electionYear to set
   */
  public void setElectionYear(String electionYear) {
    this.electionYear = electionYear;
  }

  /**
   * @return the stage
   */
  public List<Stage> getStage() {
    return stage;
  }

  /**
   * @param stage the stage to set
   */
  public void setStage(List<Stage> stage) {
    this.stage = stage;
  }

  /**
   * @return the office
   */
  public HeldOffice getOffice() {
    return office;
  }

  /**
   * @param office the office to set
   */
  public void setOffice(HeldOffice office) {
    this.office = office;
  }

  /**
   * @return the parties
   */
  public String getParties() {
    return parties;
  }

  /**
   * @param parties the parties to set
   */
  public void setParties(String parties) {
    this.parties = parties;
  }

  /**
   * @return the district
   */
  public String getDistrict() {
    return district;
  }

  /**
   * @param district the district to set
   */
  public void setDistrict(String district) {
    this.district = district;
  }

  /**
   * @return the status
   */
  public String getStatus() {
    return status;
  }

  /**
   * @param status the status to set
   */
  public void setStatus(String status) {
    this.status = status;
  }

  /**
   * @return the ballotName
   */
  public String getBallotName() {
    return ballotName;
  }

  /**
   * @param ballotName the ballotName to set
   */
  public void setBallotName(String ballotName) {
    this.ballotName = ballotName;
  }

  @Override
  public String toString() {

    return "{"
    + "'electionId': " + electionId
    + ", 'name': " + name
    + ", 'stateId': " + stateId
    + ", 'officeTypeId': " + officeTypeId
    + ", 'electionYear': " + electionYear
    + ", 'stage': " + stage
    + ", 'office': " + office
    + ", 'parties': " + parties
    + ", 'district': " + district
    + ", 'status': " + status
    + ", 'ballotName': " + ballotName
    + "}";
  }
  
  public Election() {}
  
  public Election(Long electionId, String name, String stateId, String officeTypeId, String special, String electionYear)
  {
    this.electionId = electionId;
    this.name = name;
    this.stateId = stateId;
    this.officeTypeId = officeTypeId;
    this.special = special;
    this.electionYear = electionYear;
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.