Samples JDK
FaultDetailDocumentImpl.java
1 /*
2  * An XML document type.
3  * Localname: faultDetail
4  * Namespace: http://apache.org/hello_world_soap_http/types
5  * Java type: org.apache.helloWorldSoapHttp.types.FaultDetailDocument
6  *
7  * Automatically generated - do not modify.
8  */
9 package org.apache.helloWorldSoapHttp.types.impl;
10 /**
11  * A document containing one faultDetail(@http://apache.org/hello_world_soap_http/types) element.
12  *
13  * This is a complex type.
14  */
15 public class FaultDetailDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.helloWorldSoapHttp.types.FaultDetailDocument
16 {
17  private static final long serialVersionUID = 1L;
18 
19  public FaultDetailDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20  {
21  super(sType);
22  }
23 
24  private static final javax.xml.namespace.QName FAULTDETAIL$0 =
25  new javax.xml.namespace.QName("http://apache.org/hello_world_soap_http/types", "faultDetail");
26 
27 
28  /**
29  * Gets the "faultDetail" element
30  */
32  {
33  synchronized (monitor())
34  {
35  check_orphaned();
37  target = (org.apache.helloWorldSoapHttp.types.FaultDetailDocument.FaultDetail)get_store().find_element_user(FAULTDETAIL$0, 0);
38  if (target == null)
39  {
40  return null;
41  }
42  return target;
43  }
44  }
45 
46  /**
47  * Sets the "faultDetail" element
48  */
50  {
51  generatedSetterHelperImpl(faultDetail, FAULTDETAIL$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52  }
53 
54  /**
55  * Appends and returns a new empty "faultDetail" element
56  */
58  {
59  synchronized (monitor())
60  {
61  check_orphaned();
63  target = (org.apache.helloWorldSoapHttp.types.FaultDetailDocument.FaultDetail)get_store().add_element_user(FAULTDETAIL$0);
64  return target;
65  }
66  }
67  /**
68  * An XML faultDetail(@http://apache.org/hello_world_soap_http/types).
69  *
70  * This is a complex type.
71  */
72  public static class FaultDetailImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.helloWorldSoapHttp.types.FaultDetailDocument.FaultDetail
73  {
74  private static final long serialVersionUID = 1L;
75 
76  public FaultDetailImpl(org.apache.xmlbeans.SchemaType sType)
77  {
78  super(sType);
79  }
80 
81  private static final javax.xml.namespace.QName MINOR$0 =
82  new javax.xml.namespace.QName("http://apache.org/hello_world_soap_http/types", "minor");
83  private static final javax.xml.namespace.QName MAJOR$2 =
84  new javax.xml.namespace.QName("http://apache.org/hello_world_soap_http/types", "major");
85 
86 
87  /**
88  * Gets the "minor" element
89  */
90  public short getMinor()
91  {
92  synchronized (monitor())
93  {
94  check_orphaned();
95  org.apache.xmlbeans.SimpleValue target = null;
96  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MINOR$0, 0);
97  if (target == null)
98  {
99  return 0;
100  }
101  return target.getShortValue();
102  }
103  }
104 
105  /**
106  * Gets (as xml) the "minor" element
107  */
108  public org.apache.xmlbeans.XmlShort xgetMinor()
109  {
110  synchronized (monitor())
111  {
112  check_orphaned();
113  org.apache.xmlbeans.XmlShort target = null;
114  target = (org.apache.xmlbeans.XmlShort)get_store().find_element_user(MINOR$0, 0);
115  return target;
116  }
117  }
118 
119  /**
120  * Sets the "minor" element
121  */
122  public void setMinor(short minor)
123  {
124  synchronized (monitor())
125  {
126  check_orphaned();
127  org.apache.xmlbeans.SimpleValue target = null;
128  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MINOR$0, 0);
129  if (target == null)
130  {
131  target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MINOR$0);
132  }
133  target.setShortValue(minor);
134  }
135  }
136 
137  /**
138  * Sets (as xml) the "minor" element
139  */
140  public void xsetMinor(org.apache.xmlbeans.XmlShort minor)
141  {
142  synchronized (monitor())
143  {
144  check_orphaned();
145  org.apache.xmlbeans.XmlShort target = null;
146  target = (org.apache.xmlbeans.XmlShort)get_store().find_element_user(MINOR$0, 0);
147  if (target == null)
148  {
149  target = (org.apache.xmlbeans.XmlShort)get_store().add_element_user(MINOR$0);
150  }
151  target.set(minor);
152  }
153  }
154 
155  /**
156  * Gets the "major" element
157  */
158  public short getMajor()
159  {
160  synchronized (monitor())
161  {
162  check_orphaned();
163  org.apache.xmlbeans.SimpleValue target = null;
164  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAJOR$2, 0);
165  if (target == null)
166  {
167  return 0;
168  }
169  return target.getShortValue();
170  }
171  }
172 
173  /**
174  * Gets (as xml) the "major" element
175  */
176  public org.apache.xmlbeans.XmlShort xgetMajor()
177  {
178  synchronized (monitor())
179  {
180  check_orphaned();
181  org.apache.xmlbeans.XmlShort target = null;
182  target = (org.apache.xmlbeans.XmlShort)get_store().find_element_user(MAJOR$2, 0);
183  return target;
184  }
185  }
186 
187  /**
188  * Sets the "major" element
189  */
190  public void setMajor(short major)
191  {
192  synchronized (monitor())
193  {
194  check_orphaned();
195  org.apache.xmlbeans.SimpleValue target = null;
196  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAJOR$2, 0);
197  if (target == null)
198  {
199  target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MAJOR$2);
200  }
201  target.setShortValue(major);
202  }
203  }
204 
205  /**
206  * Sets (as xml) the "major" element
207  */
208  public void xsetMajor(org.apache.xmlbeans.XmlShort major)
209  {
210  synchronized (monitor())
211  {
212  check_orphaned();
213  org.apache.xmlbeans.XmlShort target = null;
214  target = (org.apache.xmlbeans.XmlShort)get_store().find_element_user(MAJOR$2, 0);
215  if (target == null)
216  {
217  target = (org.apache.xmlbeans.XmlShort)get_store().add_element_user(MAJOR$2);
218  }
219  target.set(major);
220  }
221  }
222  }
223 }
org.apache.helloWorldSoapHttp.types.FaultDetailDocument.FaultDetail getFaultDetail()
org.apache.helloWorldSoapHttp.types.FaultDetailDocument.FaultDetail addNewFaultDetail()
void setFaultDetail(org.apache.helloWorldSoapHttp.types.FaultDetailDocument.FaultDetail faultDetail)