1
2
3
4
5
6
7
8
9 package org.xmlhammer.model.project;
10
11 import java.util.ArrayList;
12 import java.util.List;
13 import javax.xml.bind.annotation.XmlAccessType;
14 import javax.xml.bind.annotation.XmlAccessorType;
15 import javax.xml.bind.annotation.XmlElement;
16 import javax.xml.bind.annotation.XmlElements;
17 import javax.xml.bind.annotation.XmlRootElement;
18 import javax.xml.bind.annotation.XmlType;
19
20
21 /***
22 * <p>Java class for input element declaration.
23 *
24 * <p>The following schema fragment specifies the expected content contained within this class.
25 *
26 * <pre>
27 * <element name="input">
28 * <complexType>
29 * <complexContent>
30 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
31 * <choice>
32 * <element ref="{http://www.xmlhammer.org/2007/project}filter"/>
33 * <sequence maxOccurs="unbounded">
34 * <choice>
35 * <sequence>
36 * <element ref="{http://www.xmlhammer.org/2007/project}source"/>
37 * </sequence>
38 * <sequence>
39 * <element ref="{http://www.xmlhammer.org/2007/project}source"/>
40 * <element ref="{http://www.xmlhammer.org/2007/project}result"/>
41 * </sequence>
42 * </choice>
43 * </sequence>
44 * </choice>
45 * </restriction>
46 * </complexContent>
47 * </complexType>
48 * </element>
49 * </pre>
50 *
51 *
52 */
53 @XmlAccessorType(XmlAccessType.FIELD)
54 @XmlType(name = "", propOrder = {
55 "filter",
56 "sourceOrSourceAndResult"
57 })
58 @XmlRootElement(name = "input")
59 public class Input {
60
61 @XmlElement(namespace = "http://www.xmlhammer.org/2007/project")
62 protected Filter filter;
63 @XmlElements({
64 @XmlElement(name = "result", namespace = "http://www.xmlhammer.org/2007/project", required = true, type = Result.class),
65 @XmlElement(name = "source", namespace = "http://www.xmlhammer.org/2007/project", required = true, type = Source.class)
66 })
67 protected List<Document> sourceOrSourceAndResult;
68
69 /***
70 * Gets the value of the filter property.
71 *
72 * @return
73 * possible object is
74 * {@link Filter }
75 *
76 */
77 public Filter getFilter() {
78 return filter;
79 }
80
81 /***
82 * Sets the value of the filter property.
83 *
84 * @param value
85 * allowed object is
86 * {@link Filter }
87 *
88 */
89 public void setFilter(Filter value) {
90 this.filter = value;
91 }
92
93 /***
94 * Gets the value of the sourceOrSourceAndResult property.
95 *
96 * <p>
97 * This accessor method returns a reference to the live list,
98 * not a snapshot. Therefore any modification you make to the
99 * returned list will be present inside the JAXB object.
100 * This is why there is not a <CODE>set</CODE> method for the sourceOrSourceAndResult property.
101 *
102 * <p>
103 * For example, to add a new item, do as follows:
104 * <pre>
105 * getSourceOrSourceAndResult().add(newItem);
106 * </pre>
107 *
108 *
109 * <p>
110 * Objects of the following type(s) are allowed in the list
111 * {@link Result }
112 * {@link Source }
113 *
114 *
115 */
116 public List<Document> getSourceOrSourceAndResult() {
117 if (sourceOrSourceAndResult == null) {
118 sourceOrSourceAndResult = new ArrayList<Document>();
119 }
120 return this.sourceOrSourceAndResult;
121 }
122
123 }