package edu.northwestern.bioinformatics.studycalendar.xml.writers;

import edu.northwestern.bioinformatics.studycalendar.domain.PlannedCalendar;
import edu.northwestern.bioinformatics.studycalendar.domain.delta.Delta;
import edu.northwestern.bioinformatics.studycalendar.domain.delta.PopulationDelta;
import edu.northwestern.bioinformatics.studycalendar.domain.delta.Changeable;

/**
 * @author Nataliya Shurupova
 */
public class PopulationDeltaXmlSerializer extends AbstractDeltaXmlSerializer {
    public static final String POPULATION_DELTA = "population-delta";

    //not sure about this method
    protected Changeable nodeInstance() {
        return new PlannedCalendar();
    }

    protected Delta deltaInstance() {
        return new PopulationDelta();
    }

    protected String elementName() {
        return POPULATION_DELTA;
    }
}


@@ -122,30 +122,25 @@
 domain.P
-lannedCalendar
+opulation
 ;%0Aimport
@@ -560,41 +560,8 @@
 %22;%0A%0A
-    //not sure about this method%0A
     
@@ -622,22 +622,17 @@
 ew P
-lannedCalendar
+opulation
 ();%0A

Change nodeInstance to Population from PlannedCalendar. #567.