Samples JDK
USAddressImpl.java
1 /*
2  * XML Type: USAddress
3  * Namespace: http://www.freemindcafe.com/purchase
4  * Java type: com.freemindcafe.purchase.USAddress
5  *
6  * Automatically generated - do not modify.
7  */
8 package com.freemindcafe.purchase.impl;
9 /**
10  * An XML USAddress(@http://www.freemindcafe.com/purchase).
11  *
12  * This is a complex type.
13  */
14 public class USAddressImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.freemindcafe.purchase.USAddress
15 {
16  private static final long serialVersionUID = 1L;
17 
18  public USAddressImpl(org.apache.xmlbeans.SchemaType sType)
19  {
20  super(sType);
21  }
22 
23  private static final javax.xml.namespace.QName NAME$0 =
24  new javax.xml.namespace.QName("", "name");
25  private static final javax.xml.namespace.QName STREET$2 =
26  new javax.xml.namespace.QName("", "street");
27  private static final javax.xml.namespace.QName CITY$4 =
28  new javax.xml.namespace.QName("", "city");
29  private static final javax.xml.namespace.QName STATE$6 =
30  new javax.xml.namespace.QName("", "state");
31  private static final javax.xml.namespace.QName ZIP$8 =
32  new javax.xml.namespace.QName("", "zip");
33  private static final javax.xml.namespace.QName COUNTRY$10 =
34  new javax.xml.namespace.QName("", "country");
35 
36 
37  /**
38  * Gets the "name" element
39  */
40  public java.lang.String getName()
41  {
42  synchronized (monitor())
43  {
44  check_orphaned();
45  org.apache.xmlbeans.SimpleValue target = null;
46  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);
47  if (target == null)
48  {
49  return null;
50  }
51  return target.getStringValue();
52  }
53  }
54 
55  /**
56  * Gets (as xml) the "name" element
57  */
58  public org.apache.xmlbeans.XmlString xgetName()
59  {
60  synchronized (monitor())
61  {
62  check_orphaned();
63  org.apache.xmlbeans.XmlString target = null;
64  target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);
65  return target;
66  }
67  }
68 
69  /**
70  * Sets the "name" element
71  */
72  public void setName(java.lang.String name)
73  {
74  synchronized (monitor())
75  {
76  check_orphaned();
77  org.apache.xmlbeans.SimpleValue target = null;
78  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);
79  if (target == null)
80  {
81  target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);
82  }
83  target.setStringValue(name);
84  }
85  }
86 
87  /**
88  * Sets (as xml) the "name" element
89  */
90  public void xsetName(org.apache.xmlbeans.XmlString name)
91  {
92  synchronized (monitor())
93  {
94  check_orphaned();
95  org.apache.xmlbeans.XmlString target = null;
96  target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);
97  if (target == null)
98  {
99  target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$0);
100  }
101  target.set(name);
102  }
103  }
104 
105  /**
106  * Gets the "street" element
107  */
108  public java.lang.String getStreet()
109  {
110  synchronized (monitor())
111  {
112  check_orphaned();
113  org.apache.xmlbeans.SimpleValue target = null;
114  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STREET$2, 0);
115  if (target == null)
116  {
117  return null;
118  }
119  return target.getStringValue();
120  }
121  }
122 
123  /**
124  * Gets (as xml) the "street" element
125  */
126  public org.apache.xmlbeans.XmlString xgetStreet()
127  {
128  synchronized (monitor())
129  {
130  check_orphaned();
131  org.apache.xmlbeans.XmlString target = null;
132  target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(STREET$2, 0);
133  return target;
134  }
135  }
136 
137  /**
138  * Sets the "street" element
139  */
140  public void setStreet(java.lang.String street)
141  {
142  synchronized (monitor())
143  {
144  check_orphaned();
145  org.apache.xmlbeans.SimpleValue target = null;
146  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STREET$2, 0);
147  if (target == null)
148  {
149  target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STREET$2);
150  }
151  target.setStringValue(street);
152  }
153  }
154 
155  /**
156  * Sets (as xml) the "street" element
157  */
158  public void xsetStreet(org.apache.xmlbeans.XmlString street)
159  {
160  synchronized (monitor())
161  {
162  check_orphaned();
163  org.apache.xmlbeans.XmlString target = null;
164  target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(STREET$2, 0);
165  if (target == null)
166  {
167  target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(STREET$2);
168  }
169  target.set(street);
170  }
171  }
172 
173  /**
174  * Gets the "city" element
175  */
176  public java.lang.String getCity()
177  {
178  synchronized (monitor())
179  {
180  check_orphaned();
181  org.apache.xmlbeans.SimpleValue target = null;
182  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CITY$4, 0);
183  if (target == null)
184  {
185  return null;
186  }
187  return target.getStringValue();
188  }
189  }
190 
191  /**
192  * Gets (as xml) the "city" element
193  */
194  public org.apache.xmlbeans.XmlString xgetCity()
195  {
196  synchronized (monitor())
197  {
198  check_orphaned();
199  org.apache.xmlbeans.XmlString target = null;
200  target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CITY$4, 0);
201  return target;
202  }
203  }
204 
205  /**
206  * Sets the "city" element
207  */
208  public void setCity(java.lang.String city)
209  {
210  synchronized (monitor())
211  {
212  check_orphaned();
213  org.apache.xmlbeans.SimpleValue target = null;
214  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CITY$4, 0);
215  if (target == null)
216  {
217  target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CITY$4);
218  }
219  target.setStringValue(city);
220  }
221  }
222 
223  /**
224  * Sets (as xml) the "city" element
225  */
226  public void xsetCity(org.apache.xmlbeans.XmlString city)
227  {
228  synchronized (monitor())
229  {
230  check_orphaned();
231  org.apache.xmlbeans.XmlString target = null;
232  target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CITY$4, 0);
233  if (target == null)
234  {
235  target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(CITY$4);
236  }
237  target.set(city);
238  }
239  }
240 
241  /**
242  * Gets the "state" element
243  */
244  public java.lang.String getState()
245  {
246  synchronized (monitor())
247  {
248  check_orphaned();
249  org.apache.xmlbeans.SimpleValue target = null;
250  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATE$6, 0);
251  if (target == null)
252  {
253  return null;
254  }
255  return target.getStringValue();
256  }
257  }
258 
259  /**
260  * Gets (as xml) the "state" element
261  */
262  public org.apache.xmlbeans.XmlString xgetState()
263  {
264  synchronized (monitor())
265  {
266  check_orphaned();
267  org.apache.xmlbeans.XmlString target = null;
268  target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(STATE$6, 0);
269  return target;
270  }
271  }
272 
273  /**
274  * Sets the "state" element
275  */
276  public void setState(java.lang.String state)
277  {
278  synchronized (monitor())
279  {
280  check_orphaned();
281  org.apache.xmlbeans.SimpleValue target = null;
282  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATE$6, 0);
283  if (target == null)
284  {
285  target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATE$6);
286  }
287  target.setStringValue(state);
288  }
289  }
290 
291  /**
292  * Sets (as xml) the "state" element
293  */
294  public void xsetState(org.apache.xmlbeans.XmlString state)
295  {
296  synchronized (monitor())
297  {
298  check_orphaned();
299  org.apache.xmlbeans.XmlString target = null;
300  target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(STATE$6, 0);
301  if (target == null)
302  {
303  target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(STATE$6);
304  }
305  target.set(state);
306  }
307  }
308 
309  /**
310  * Gets the "zip" element
311  */
312  public java.math.BigDecimal getZip()
313  {
314  synchronized (monitor())
315  {
316  check_orphaned();
317  org.apache.xmlbeans.SimpleValue target = null;
318  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ZIP$8, 0);
319  if (target == null)
320  {
321  return null;
322  }
323  return target.getBigDecimalValue();
324  }
325  }
326 
327  /**
328  * Gets (as xml) the "zip" element
329  */
330  public org.apache.xmlbeans.XmlDecimal xgetZip()
331  {
332  synchronized (monitor())
333  {
334  check_orphaned();
335  org.apache.xmlbeans.XmlDecimal target = null;
336  target = (org.apache.xmlbeans.XmlDecimal)get_store().find_element_user(ZIP$8, 0);
337  return target;
338  }
339  }
340 
341  /**
342  * Sets the "zip" element
343  */
344  public void setZip(java.math.BigDecimal zip)
345  {
346  synchronized (monitor())
347  {
348  check_orphaned();
349  org.apache.xmlbeans.SimpleValue target = null;
350  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ZIP$8, 0);
351  if (target == null)
352  {
353  target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ZIP$8);
354  }
355  target.setBigDecimalValue(zip);
356  }
357  }
358 
359  /**
360  * Sets (as xml) the "zip" element
361  */
362  public void xsetZip(org.apache.xmlbeans.XmlDecimal zip)
363  {
364  synchronized (monitor())
365  {
366  check_orphaned();
367  org.apache.xmlbeans.XmlDecimal target = null;
368  target = (org.apache.xmlbeans.XmlDecimal)get_store().find_element_user(ZIP$8, 0);
369  if (target == null)
370  {
371  target = (org.apache.xmlbeans.XmlDecimal)get_store().add_element_user(ZIP$8);
372  }
373  target.set(zip);
374  }
375  }
376 
377  /**
378  * Gets the "country" attribute
379  */
380  public java.lang.String getCountry()
381  {
382  synchronized (monitor())
383  {
384  check_orphaned();
385  org.apache.xmlbeans.SimpleValue target = null;
386  target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(COUNTRY$10);
387  if (target == null)
388  {
389  target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(COUNTRY$10);
390  }
391  if (target == null)
392  {
393  return null;
394  }
395  return target.getStringValue();
396  }
397  }
398 
399  /**
400  * Gets (as xml) the "country" attribute
401  */
402  public org.apache.xmlbeans.XmlNMTOKEN xgetCountry()
403  {
404  synchronized (monitor())
405  {
406  check_orphaned();
407  org.apache.xmlbeans.XmlNMTOKEN target = null;
408  target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(COUNTRY$10);
409  if (target == null)
410  {
411  target = (org.apache.xmlbeans.XmlNMTOKEN)get_default_attribute_value(COUNTRY$10);
412  }
413  return target;
414  }
415  }
416 
417  /**
418  * True if has "country" attribute
419  */
420  public boolean isSetCountry()
421  {
422  synchronized (monitor())
423  {
424  check_orphaned();
425  return get_store().find_attribute_user(COUNTRY$10) != null;
426  }
427  }
428 
429  /**
430  * Sets the "country" attribute
431  */
432  public void setCountry(java.lang.String country)
433  {
434  synchronized (monitor())
435  {
436  check_orphaned();
437  org.apache.xmlbeans.SimpleValue target = null;
438  target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(COUNTRY$10);
439  if (target == null)
440  {
441  target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(COUNTRY$10);
442  }
443  target.setStringValue(country);
444  }
445  }
446 
447  /**
448  * Sets (as xml) the "country" attribute
449  */
450  public void xsetCountry(org.apache.xmlbeans.XmlNMTOKEN country)
451  {
452  synchronized (monitor())
453  {
454  check_orphaned();
455  org.apache.xmlbeans.XmlNMTOKEN target = null;
456  target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(COUNTRY$10);
457  if (target == null)
458  {
459  target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().add_attribute_user(COUNTRY$10);
460  }
461  target.set(country);
462  }
463  }
464 
465  /**
466  * Unsets the "country" attribute
467  */
468  public void unsetCountry()
469  {
470  synchronized (monitor())
471  {
472  check_orphaned();
473  get_store().remove_attribute(COUNTRY$10);
474  }
475  }
476 }
void setZip(java.math.BigDecimal zip)
void setCountry(java.lang.String country)
void xsetCity(org.apache.xmlbeans.XmlString city)
org.apache.xmlbeans.XmlString xgetCity()
void xsetStreet(org.apache.xmlbeans.XmlString street)
void xsetName(org.apache.xmlbeans.XmlString name)
org.apache.xmlbeans.XmlString xgetName()
org.apache.xmlbeans.XmlString xgetState()
org.apache.xmlbeans.XmlDecimal xgetZip()
void xsetCountry(org.apache.xmlbeans.XmlNMTOKEN country)
org.apache.xmlbeans.XmlNMTOKEN xgetCountry()
org.apache.xmlbeans.XmlString xgetStreet()
void xsetZip(org.apache.xmlbeans.XmlDecimal zip)
void xsetState(org.apache.xmlbeans.XmlString state)
void setStreet(java.lang.String street)