KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > rentacar > services > client > AgencyVO


1
2 package org.objectweb.rentacar.services.client;
3
4 import java.util.ArrayList JavaDoc;
5 import java.util.List JavaDoc;
6 import javax.xml.bind.annotation.AccessType;
7 import javax.xml.bind.annotation.XmlAccessorType;
8 import javax.xml.bind.annotation.XmlElement;
9 import javax.xml.bind.annotation.XmlType;
10 import org.objectweb.rentacar.services.client.AgencyVO;
11 import org.objectweb.rentacar.services.client.CarVO;
12 import org.objectweb.rentacar.services.client.ContactVO;
13
14
15 /**
16  * <p>Java class for agencyVO complex type.
17  *
18  * <p>The following schema fragment specifies the expected content contained within this class.
19  *
20  * <pre>
21  * &lt;complexType name="agencyVO">
22  * &lt;complexContent>
23  * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
24  * &lt;sequence>
25  * &lt;element name="agencyId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
26  * &lt;element name="cars" type="{http://consultation.services.centraloffice.rentacar.objectweb.org/}carVO" maxOccurs="unbounded" minOccurs="0"/>
27  * &lt;element name="contact" type="{http://consultation.services.centraloffice.rentacar.objectweb.org/}contactVO" minOccurs="0"/>
28  * &lt;element name="host" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
29  * &lt;element name="port" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
30  * &lt;element name="warName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
31  * &lt;/sequence>
32  * &lt;/restriction>
33  * &lt;/complexContent>
34  * &lt;/complexType>
35  * </pre>
36  *
37  *
38  */

39 @XmlAccessorType(AccessType.FIELD)
40 @XmlType(name = "agencyVO", propOrder = {
41     "agencyId",
42     "cars",
43     "contact",
44     "host",
45     "port",
46     "warName"
47 })
48 public class AgencyVO {
49
50     protected String JavaDoc agencyId;
51     @XmlElement(nillable = true)
52     protected List JavaDoc<CarVO> cars;
53     protected ContactVO contact;
54     protected String JavaDoc host;
55     protected String JavaDoc port;
56     protected String JavaDoc warName;
57
58     /**
59      * Gets the value of the agencyId property.
60      *
61      * @return
62      * possible object is
63      * {@link String }
64      *
65      */

66     public String JavaDoc getAgencyId() {
67         return agencyId;
68     }
69
70     /**
71      * Sets the value of the agencyId property.
72      *
73      * @param value
74      * allowed object is
75      * {@link String }
76      *
77      */

78     public void setAgencyId(String JavaDoc value) {
79         this.agencyId = value;
80     }
81
82     /**
83      * Gets the value of the cars property.
84      *
85      * <p>
86      * This accessor method returns a reference to the live list,
87      * not a snapshot. Therefore any modification you make to the
88      * returned list will be present inside the JAXB object.
89      * This is why there is not a <CODE>set</CODE> method for the cars property.
90      *
91      * <p>
92      * For example, to add a new item, do as follows:
93      * <pre>
94      * getCars().add(newItem);
95      * </pre>
96      *
97      *
98      * <p>
99      * Objects of the following type(s) are allowed in the list
100      * {@link CarVO }
101      *
102      *
103      */

104     public List JavaDoc<CarVO> getCars() {
105         if (cars == null) {
106             cars = new ArrayList JavaDoc<CarVO>();
107         }
108         return this.cars;
109     }
110
111     /**
112      * Gets the value of the contact property.
113      *
114      * @return
115      * possible object is
116      * {@link ContactVO }
117      *
118      */

119     public ContactVO getContact() {
120         return contact;
121     }
122
123     /**
124      * Sets the value of the contact property.
125      *
126      * @param value
127      * allowed object is
128      * {@link ContactVO }
129      *
130      */

131     public void setContact(ContactVO value) {
132         this.contact = value;
133     }
134
135     /**
136      * Gets the value of the host property.
137      *
138      * @return
139      * possible object is
140      * {@link String }
141      *
142      */

143     public String JavaDoc getHost() {
144         return host;
145     }
146
147     /**
148      * Sets the value of the host property.
149      *
150      * @param value
151      * allowed object is
152      * {@link String }
153      *
154      */

155     public void setHost(String JavaDoc value) {
156         this.host = value;
157     }
158
159     /**
160      * Gets the value of the port property.
161      *
162      * @return
163      * possible object is
164      * {@link String }
165      *
166      */

167     public String JavaDoc getPort() {
168         return port;
169     }
170
171     /**
172      * Sets the value of the port property.
173      *
174      * @param value
175      * allowed object is
176      * {@link String }
177      *
178      */

179     public void setPort(String JavaDoc value) {
180         this.port = value;
181     }
182
183     /**
184      * Gets the value of the warName property.
185      *
186      * @return
187      * possible object is
188      * {@link String }
189      *
190      */

191     public String JavaDoc getWarName() {
192         return warName;
193     }
194
195     /**
196      * Sets the value of the warName property.
197      *
198      * @param value
199      * allowed object is
200      * {@link String }
201      *
202      */

203     public void setWarName(String JavaDoc value) {
204         this.warName = value;
205     }
206
207 }
208
Popular Tags