package com.grayben.riskExtractor.headingMarker.elector;

import java.util.List;

import com.grayben.riskExtractor.headingMarker.TextCandidate;
import com.grayben.riskExtractor.headingMarker.TextCandidates;
import com.grayben.riskExtractor.headingMarker.nominator.NomineesRetrievable;

public class ElectedTextList implements
	NomineesRetrievable,
	ElecteesRetrievable {

	List<String> textList;

    public List<String> getTextList() {
        return textList;
    }

    public void setTextList(List<String> textList) {
        this.textList = textList;
    }

	TextCandidates nominees;

    @Override
    public TextCandidates getNominees() {
        // TODO Auto-generated method stub
        return this.nominees;
    }

    public void setNominees(TextCandidates nominees) {
        this.nominees = nominees;
    }


    TextCandidates electees;

    @Override
    public TextCandidates getElectees() {
        // TODO Auto-generated method stub
        return this.electees;
    }

    public void setElectees(TextCandidates electees) {
        this.electees = electees;
    }

	public ElectedTextList(List<String> textList, TextCandidates nominees, TextCandidates electees){
		super();
		this.textList = textList;
		this.nominees = nominees;
		this.electees = electees;
	}

}

@@ -200,16 +200,92 @@
 idates;%0A
+import com.grayben.riskExtractor.headingMarker.nominator.NominatedTextList;%0A
 import c
@@ -387,43 +387,77 @@
 List
- implements%0A%09NomineesRetrievable,%0A%09
+%0A%0A        extends%0A        NominatedTextList%0A%0A        implements%0A%09    
 Elec
@@ -670,268 +670,8 @@
  %7D%0A%0A
-%09TextCandidates nominees;%0A%0A    @Override%0A    public TextCandidates getNominees() %7B%0A        // TODO Auto-generated method stub%0A        return this.nominees;%0A    %7D%0A%0A    public void setNominees(TextCandidates nominees) %7B%0A        this.nominees = nominees;%0A    %7D%0A%0A%0A
     
@@ -1038,56 +1038,17 @@
 per(
-);%0A%09%09this.textList = textList;%0A%09%09this.nominees =
+textList,
  nom
@@ -1052,16 +1052,17 @@
 nominees
+)
 ;%0A%09%09this

Make ElectedTextList subclass of NominatedTextList