package different_namespaces; import java.util.LinkedList; 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.XmlElementWrapper; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <extension base="{http://example.com/container}base_container"> * <sequence> * <element ref="{http://example.com/entries}entries" minOccurs="0"/> * <element ref="{http://example.com/items}items"/> * <element name="tests" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="test" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * </sequence> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "entries", "items", "tests" }) @XmlRootElement(name = "container", namespace = "http://example.com/namespaces") public class Container extends BaseContainer { @XmlElementWrapper(name = "entries") @XmlElement(name = "entry", namespace = "http://example.com/entry") protected List<Entry> entries; @XmlElementWrapper(name = "items", required = true, namespace = "http://example.com/items") @XmlElement(name = "entry", namespace = "http://example.com/entry") protected List<Entry> items; @XmlElementWrapper(name = "tests", namespace = "http://example.com/namespaces") @XmlElement(name = "test", namespace = "http://example.com/namespaces") protected List<String> tests; public List<Entry> getEntries() { if (entries == null) { entries = new LinkedList<Entry>(); } return entries; } public void setEntries(List<Entry> entries) { this.entries = entries; } public List<Entry> getItems() { if (items == null) { items = new LinkedList<Entry>(); } return items; } public void setItems(List<Entry> items) { this.items = items; } public List<String> getTests() { if (tests == null) { tests = new LinkedList<String>(); } return tests; } public void setTests(List<String> tests) { this.tests = tests; } }