package org.openlca.ilcd.lists; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ILCDLocationsType", namespace = "http://lca.jrc.it/ILCD/Locations", propOrder = { "locations" }) public class LocationList implements Serializable { private final static long serialVersionUID = 1L; @XmlElement(name = "location", required = true) public final List<Location> locations = new ArrayList<>(); @Override public LocationList clone() { LocationList clone = new LocationList(); for (Location loc : locations) { if (loc == null) continue; clone.locations.add(loc.clone()); } return clone; } }