Samples JDK
PurchaseOrderTypeImpl.java
1 /*
2  * XML Type: PurchaseOrderType
3  * Namespace: http://www.freemindcafe.com/purchase
4  * Java type: com.freemindcafe.purchase.PurchaseOrderType
5  *
6  * Automatically generated - do not modify.
7  */
8 package com.freemindcafe.purchase.impl;
9 /**
10  * An XML PurchaseOrderType(@http://www.freemindcafe.com/purchase).
11  *
12  * This is a complex type.
13  */
14 public class PurchaseOrderTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.freemindcafe.purchase.PurchaseOrderType
15 {
16  private static final long serialVersionUID = 1L;
17 
18  public PurchaseOrderTypeImpl(org.apache.xmlbeans.SchemaType sType)
19  {
20  super(sType);
21  }
22 
23  private static final javax.xml.namespace.QName SHIPTO$0 =
24  new javax.xml.namespace.QName("", "shipTo");
25  private static final javax.xml.namespace.QName BILLTO$2 =
26  new javax.xml.namespace.QName("", "billTo");
27  private static final javax.xml.namespace.QName COMMENT$4 =
28  new javax.xml.namespace.QName("http://www.freemindcafe.com/purchase", "comment");
29  private static final javax.xml.namespace.QName ITEMS$6 =
30  new javax.xml.namespace.QName("", "items");
31  private static final javax.xml.namespace.QName ORDERDATE$8 =
32  new javax.xml.namespace.QName("", "orderDate");
33 
34 
35  /**
36  * Gets the "shipTo" element
37  */
39  {
40  synchronized (monitor())
41  {
42  check_orphaned();
43  com.freemindcafe.purchase.USAddress target = null;
44  target = (com.freemindcafe.purchase.USAddress)get_store().find_element_user(SHIPTO$0, 0);
45  if (target == null)
46  {
47  return null;
48  }
49  return target;
50  }
51  }
52 
53  /**
54  * Sets the "shipTo" element
55  */
57  {
58  generatedSetterHelperImpl(shipTo, SHIPTO$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
59  }
60 
61  /**
62  * Appends and returns a new empty "shipTo" element
63  */
65  {
66  synchronized (monitor())
67  {
68  check_orphaned();
69  com.freemindcafe.purchase.USAddress target = null;
70  target = (com.freemindcafe.purchase.USAddress)get_store().add_element_user(SHIPTO$0);
71  return target;
72  }
73  }
74 
75  /**
76  * Gets the "billTo" element
77  */
79  {
80  synchronized (monitor())
81  {
82  check_orphaned();
83  com.freemindcafe.purchase.USAddress target = null;
84  target = (com.freemindcafe.purchase.USAddress)get_store().find_element_user(BILLTO$2, 0);
85  if (target == null)
86  {
87  return null;
88  }
89  return target;
90  }
91  }
92 
93  /**
94  * Sets the "billTo" element
95  */
97  {
98  generatedSetterHelperImpl(billTo, BILLTO$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
99  }
100 
101  /**
102  * Appends and returns a new empty "billTo" element
103  */
105  {
106  synchronized (monitor())
107  {
108  check_orphaned();
109  com.freemindcafe.purchase.USAddress target = null;
110  target = (com.freemindcafe.purchase.USAddress)get_store().add_element_user(BILLTO$2);
111  return target;
112  }
113  }
114 
115  /**
116  * Gets the "comment" element
117  */
118  public java.lang.String getComment()
119  {
120  synchronized (monitor())
121  {
122  check_orphaned();
123  org.apache.xmlbeans.SimpleValue target = null;
124  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COMMENT$4, 0);
125  if (target == null)
126  {
127  return null;
128  }
129  return target.getStringValue();
130  }
131  }
132 
133  /**
134  * Gets (as xml) the "comment" element
135  */
136  public org.apache.xmlbeans.XmlString xgetComment()
137  {
138  synchronized (monitor())
139  {
140  check_orphaned();
141  org.apache.xmlbeans.XmlString target = null;
142  target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(COMMENT$4, 0);
143  return target;
144  }
145  }
146 
147  /**
148  * True if has "comment" element
149  */
150  public boolean isSetComment()
151  {
152  synchronized (monitor())
153  {
154  check_orphaned();
155  return get_store().count_elements(COMMENT$4) != 0;
156  }
157  }
158 
159  /**
160  * Sets the "comment" element
161  */
162  public void setComment(java.lang.String comment)
163  {
164  synchronized (monitor())
165  {
166  check_orphaned();
167  org.apache.xmlbeans.SimpleValue target = null;
168  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COMMENT$4, 0);
169  if (target == null)
170  {
171  target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(COMMENT$4);
172  }
173  target.setStringValue(comment);
174  }
175  }
176 
177  /**
178  * Sets (as xml) the "comment" element
179  */
180  public void xsetComment(org.apache.xmlbeans.XmlString comment)
181  {
182  synchronized (monitor())
183  {
184  check_orphaned();
185  org.apache.xmlbeans.XmlString target = null;
186  target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(COMMENT$4, 0);
187  if (target == null)
188  {
189  target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(COMMENT$4);
190  }
191  target.set(comment);
192  }
193  }
194 
195  /**
196  * Unsets the "comment" element
197  */
198  public void unsetComment()
199  {
200  synchronized (monitor())
201  {
202  check_orphaned();
203  get_store().remove_element(COMMENT$4, 0);
204  }
205  }
206 
207  /**
208  * Gets the "items" element
209  */
211  {
212  synchronized (monitor())
213  {
214  check_orphaned();
215  com.freemindcafe.purchase.Items target = null;
216  target = (com.freemindcafe.purchase.Items)get_store().find_element_user(ITEMS$6, 0);
217  if (target == null)
218  {
219  return null;
220  }
221  return target;
222  }
223  }
224 
225  /**
226  * Sets the "items" element
227  */
229  {
230  generatedSetterHelperImpl(items, ITEMS$6, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
231  }
232 
233  /**
234  * Appends and returns a new empty "items" element
235  */
237  {
238  synchronized (monitor())
239  {
240  check_orphaned();
241  com.freemindcafe.purchase.Items target = null;
242  target = (com.freemindcafe.purchase.Items)get_store().add_element_user(ITEMS$6);
243  return target;
244  }
245  }
246 
247  /**
248  * Gets the "orderDate" attribute
249  */
250  public java.util.Calendar getOrderDate()
251  {
252  synchronized (monitor())
253  {
254  check_orphaned();
255  org.apache.xmlbeans.SimpleValue target = null;
256  target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ORDERDATE$8);
257  if (target == null)
258  {
259  return null;
260  }
261  return target.getCalendarValue();
262  }
263  }
264 
265  /**
266  * Gets (as xml) the "orderDate" attribute
267  */
268  public org.apache.xmlbeans.XmlDate xgetOrderDate()
269  {
270  synchronized (monitor())
271  {
272  check_orphaned();
273  org.apache.xmlbeans.XmlDate target = null;
274  target = (org.apache.xmlbeans.XmlDate)get_store().find_attribute_user(ORDERDATE$8);
275  return target;
276  }
277  }
278 
279  /**
280  * True if has "orderDate" attribute
281  */
282  public boolean isSetOrderDate()
283  {
284  synchronized (monitor())
285  {
286  check_orphaned();
287  return get_store().find_attribute_user(ORDERDATE$8) != null;
288  }
289  }
290 
291  /**
292  * Sets the "orderDate" attribute
293  */
294  public void setOrderDate(java.util.Calendar orderDate)
295  {
296  synchronized (monitor())
297  {
298  check_orphaned();
299  org.apache.xmlbeans.SimpleValue target = null;
300  target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ORDERDATE$8);
301  if (target == null)
302  {
303  target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ORDERDATE$8);
304  }
305  target.setCalendarValue(orderDate);
306  }
307  }
308 
309  /**
310  * Sets (as xml) the "orderDate" attribute
311  */
312  public void xsetOrderDate(org.apache.xmlbeans.XmlDate orderDate)
313  {
314  synchronized (monitor())
315  {
316  check_orphaned();
317  org.apache.xmlbeans.XmlDate target = null;
318  target = (org.apache.xmlbeans.XmlDate)get_store().find_attribute_user(ORDERDATE$8);
319  if (target == null)
320  {
321  target = (org.apache.xmlbeans.XmlDate)get_store().add_attribute_user(ORDERDATE$8);
322  }
323  target.set(orderDate);
324  }
325  }
326 
327  /**
328  * Unsets the "orderDate" attribute
329  */
330  public void unsetOrderDate()
331  {
332  synchronized (monitor())
333  {
334  check_orphaned();
335  get_store().remove_attribute(ORDERDATE$8);
336  }
337  }
338 }
void setBillTo(com.freemindcafe.purchase.USAddress billTo)
void xsetComment(org.apache.xmlbeans.XmlString comment)
void xsetOrderDate(org.apache.xmlbeans.XmlDate orderDate)
void setItems(com.freemindcafe.purchase.Items items)
void setShipTo(com.freemindcafe.purchase.USAddress shipTo)