Source code: rim/pda/impl/FreeStorageDocumentImpl.java
1 /*
2 * An XML document type.
3 * Localname: FreeStorage
4 * Namespace: http://pda.rim
5 * Java type: rim.pda.FreeStorageDocument
6 *
7 * Automatically generated - do not modify.
8 */
9 package rim.pda.impl;
10 /**
11 * A document containing one FreeStorage(@http://pda.rim) element.
12 *
13 * This is a complex type.
14 */
15 public class FreeStorageDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements rim.pda.FreeStorageDocument
16 {
17
18 public FreeStorageDocumentImpl(org.apache.xmlbeans.SchemaType sType)
19 {
20 super(sType);
21 }
22
23 private static final javax.xml.namespace.QName FREESTORAGE$0 =
24 new javax.xml.namespace.QName("http://pda.rim", "FreeStorage");
25
26
27 /**
28 * Gets the "FreeStorage" element
29 */
30 public int getFreeStorage()
31 {
32 synchronized (monitor())
33 {
34 check_orphaned();
35 org.apache.xmlbeans.SimpleValue target = null;
36 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FREESTORAGE$0, 0);
37 if (target == null)
38 {
39 return 0;
40 }
41 return target.getIntValue();
42 }
43 }
44
45 /**
46 * Gets (as xml) the "FreeStorage" element
47 */
48 public org.apache.xmlbeans.XmlInt xgetFreeStorage()
49 {
50 synchronized (monitor())
51 {
52 check_orphaned();
53 org.apache.xmlbeans.XmlInt target = null;
54 target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(FREESTORAGE$0, 0);
55 return target;
56 }
57 }
58
59 /**
60 * Sets the "FreeStorage" element
61 */
62 public void setFreeStorage(int freeStorage)
63 {
64 synchronized (monitor())
65 {
66 check_orphaned();
67 org.apache.xmlbeans.SimpleValue target = null;
68 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FREESTORAGE$0, 0);
69 if (target == null)
70 {
71 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FREESTORAGE$0);
72 }
73 target.setIntValue(freeStorage);
74 }
75 }
76
77 /**
78 * Sets (as xml) the "FreeStorage" element
79 */
80 public void xsetFreeStorage(org.apache.xmlbeans.XmlInt freeStorage)
81 {
82 synchronized (monitor())
83 {
84 check_orphaned();
85 org.apache.xmlbeans.XmlInt target = null;
86 target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(FREESTORAGE$0, 0);
87 if (target == null)
88 {
89 target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(FREESTORAGE$0);
90 }
91 target.set(freeStorage);
92 }
93 }
94 }