Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/everest/impl/GetCurrentTemperatureDocumentImpl.java


1   /*
2    * An XML document type.
3    * Localname: GetCurrentTemperature
4    * Namespace: http://everest.org/
5    * Java type: org.everest.GetCurrentTemperatureDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package org.everest.impl;
10  /**
11   * A document containing one GetCurrentTemperature(@http://everest.org/) element.
12   *
13   * This is a complex type.
14   */
15  public class GetCurrentTemperatureDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.everest.GetCurrentTemperatureDocument
16  {
17      
18      public GetCurrentTemperatureDocumentImpl(org.apache.xmlbeans.SchemaType sType)
19      {
20          super(sType);
21      }
22      
23      private static final javax.xml.namespace.QName GETCURRENTTEMPERATURE$0 = 
24          new javax.xml.namespace.QName("http://everest.org/", "GetCurrentTemperature");
25      
26      
27      /**
28       * Gets the "GetCurrentTemperature" element
29       */
30      public org.everest.GetCurrentTemperatureDocument.GetCurrentTemperature getGetCurrentTemperature()
31      {
32          synchronized (monitor())
33          {
34              check_orphaned();
35              org.everest.GetCurrentTemperatureDocument.GetCurrentTemperature target = null;
36              target = (org.everest.GetCurrentTemperatureDocument.GetCurrentTemperature)get_store().find_element_user(GETCURRENTTEMPERATURE$0, 0);
37              if (target == null)
38              {
39                  return null;
40              }
41              return target;
42          }
43      }
44      
45      /**
46       * Sets the "GetCurrentTemperature" element
47       */
48      public void setGetCurrentTemperature(org.everest.GetCurrentTemperatureDocument.GetCurrentTemperature getCurrentTemperature)
49      {
50          synchronized (monitor())
51          {
52              check_orphaned();
53              org.everest.GetCurrentTemperatureDocument.GetCurrentTemperature target = null;
54              target = (org.everest.GetCurrentTemperatureDocument.GetCurrentTemperature)get_store().find_element_user(GETCURRENTTEMPERATURE$0, 0);
55              if (target == null)
56              {
57                  target = (org.everest.GetCurrentTemperatureDocument.GetCurrentTemperature)get_store().add_element_user(GETCURRENTTEMPERATURE$0);
58              }
59              target.set(getCurrentTemperature);
60          }
61      }
62      
63      /**
64       * Appends and returns a new empty "GetCurrentTemperature" element
65       */
66      public org.everest.GetCurrentTemperatureDocument.GetCurrentTemperature addNewGetCurrentTemperature()
67      {
68          synchronized (monitor())
69          {
70              check_orphaned();
71              org.everest.GetCurrentTemperatureDocument.GetCurrentTemperature target = null;
72              target = (org.everest.GetCurrentTemperatureDocument.GetCurrentTemperature)get_store().add_element_user(GETCURRENTTEMPERATURE$0);
73              return target;
74          }
75      }
76      /**
77       * An XML GetCurrentTemperature(@http://everest.org/).
78       *
79       * This is a complex type.
80       */
81      public static class GetCurrentTemperatureImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.everest.GetCurrentTemperatureDocument.GetCurrentTemperature
82      {
83          
84          public GetCurrentTemperatureImpl(org.apache.xmlbeans.SchemaType sType)
85          {
86              super(sType);
87          }
88          
89          private static final javax.xml.namespace.QName ALTITUDE$0 = 
90              new javax.xml.namespace.QName("http://everest.org/", "altitude");
91          
92          
93          /**
94           * Gets the "altitude" element
95           */
96          public double getAltitude()
97          {
98              synchronized (monitor())
99              {
100                 check_orphaned();
101                 org.apache.xmlbeans.SimpleValue target = null;
102                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ALTITUDE$0, 0);
103                 if (target == null)
104                 {
105                     return 0.0;
106                 }
107                 return target.getDoubleValue();
108             }
109         }
110         
111         /**
112          * Gets (as xml) the "altitude" element
113          */
114         public org.apache.xmlbeans.XmlDouble xgetAltitude()
115         {
116             synchronized (monitor())
117             {
118                 check_orphaned();
119                 org.apache.xmlbeans.XmlDouble target = null;
120                 target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(ALTITUDE$0, 0);
121                 return target;
122             }
123         }
124         
125         /**
126          * Sets the "altitude" element
127          */
128         public void setAltitude(double altitude)
129         {
130             synchronized (monitor())
131             {
132                 check_orphaned();
133                 org.apache.xmlbeans.SimpleValue target = null;
134                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ALTITUDE$0, 0);
135                 if (target == null)
136                 {
137                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ALTITUDE$0);
138                 }
139                 target.setDoubleValue(altitude);
140             }
141         }
142         
143         /**
144          * Sets (as xml) the "altitude" element
145          */
146         public void xsetAltitude(org.apache.xmlbeans.XmlDouble altitude)
147         {
148             synchronized (monitor())
149             {
150                 check_orphaned();
151                 org.apache.xmlbeans.XmlDouble target = null;
152                 target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(ALTITUDE$0, 0);
153                 if (target == null)
154                 {
155                     target = (org.apache.xmlbeans.XmlDouble)get_store().add_element_user(ALTITUDE$0);
156                 }
157                 target.set(altitude);
158             }
159         }
160     }
161 }