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