Back to project page HRForecast-WFM.
The source code is released under:
Copyright 2014 Ahmed Shafei
If you think the Android project HRForecast-WFM listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.hrf.workforcemanagement.models; //from w ww .j a v a 2 s .co m import java.util.ArrayList; import org.simpleframework.xml.Attribute; import org.simpleframework.xml.Element; import org.simpleframework.xml.ElementList; import org.simpleframework.xml.ElementListUnion; import org.simpleframework.xml.Root; import de.hrf.workforcemanagement.models.barchart.BarChart; import de.hrf.workforcemanagement.models.bubblechart.BubbleChart; import de.hrf.workforcemanagement.models.linechart.LineChart; import de.hrf.workforcemanagement.models.piechart.PieChart; import de.hrf.workforcemanagement.models.radarchart.RadarChart; import de.hrf.workforcemanagement.models.stackedbarchart.StackedbarChart; @Root public class Chart { @Attribute private String id; @ElementList(name = "properties") private ArrayList<Property> propertyList; @Element private String category; @Element private String subcategory; @ElementList(name = "filter_list") private ArrayList<Filter> filterList; @ElementListUnion({ @ElementList(entry = "line_chart", inline = true, type = LineChart.class), @ElementList(entry = "pie_chart", inline = true, type = PieChart.class), @ElementList(entry = "bar_chart", inline = true, type = BarChart.class), @ElementList(entry = "stackedbar_chart", inline = true, type = StackedbarChart.class), @ElementList(entry = "bubble_chart", inline = true, type = BubbleChart.class), @ElementList(entry = "radar_chart", inline = true, type = RadarChart.class) }) private ArrayList<ChartType> chart_list; public Chart() { } public Chart(String id, ArrayList<Property> propertyList, String category, String subcategory, ArrayList<Filter> filterList, ArrayList<ChartType> chartList) { this.id = id; this.propertyList = propertyList; this.category = category; this.subcategory = subcategory; this.filterList = filterList; this.chart_list = chartList; } public String getId() { return this.id; } public ArrayList<Property> getPropertyList() { return this.propertyList; } public String getCategory() { return this.category; } public String getSubcategory() { return this.subcategory; } public ArrayList<Filter> getFilterList() { return this.filterList; } public ArrayList<ChartType> getChartList() { return this.chart_list; } public void setId(String id) { this.id = id; } public void setPropertyList(ArrayList<Property> propertyList) { this.propertyList = propertyList; } public void setCategory(String category) { this.category = category; } public void setSubcategory(String subcategory) { this.subcategory = subcategory; } public void setFilterList(ArrayList<Filter> filterList) { this.filterList = filterList; } public void setChartList(ArrayList<ChartType> chartList) { this.chart_list = chartList; } }