package com.aionemu.gameserver.dataholders;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.Unmarshaller;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
import com.aionemu.gameserver.model.templates.curingzones.CuringTemplate;
/**
* @author xTz
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { "curingObject" })
@XmlRootElement(name = "curing_objects")
public class CuringObjectsData {
@XmlElement(name = "curing_object")
protected List<CuringTemplate> curingObject;
@XmlTransient
private List<CuringTemplate> curingObjects = new ArrayList<>();
void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
for (CuringTemplate template : curingObject) {
curingObjects.add(template);
}
}
public int size() {
return curingObjects.size();
}
public List<CuringTemplate> getCuringObject() {
return curingObjects;
}
}