001 /*
002 * XML Type: message-destinationType
003 * Namespace: http://geronimo.apache.org/xml/ns/naming-1.2
004 * Java type: org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.xbeans.geronimo.naming.impl;
009 /**
010 * An XML message-destinationType(@http://geronimo.apache.org/xml/ns/naming-1.2).
011 *
012 * This is a complex type.
013 */
014 public class GerMessageDestinationTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType
015 {
016
017 public GerMessageDestinationTypeImpl(org.apache.xmlbeans.SchemaType sType)
018 {
019 super(sType);
020 }
021
022 private static final javax.xml.namespace.QName MESSAGEDESTINATIONNAME$0 =
023 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "message-destination-name");
024 private static final javax.xml.namespace.QName PATTERN$2 =
025 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "pattern");
026 private static final javax.xml.namespace.QName ADMINOBJECTMODULE$4 =
027 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "admin-object-module");
028 private static final javax.xml.namespace.QName ADMINOBJECTLINK$6 =
029 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "admin-object-link");
030
031
032 /**
033 * Gets the "message-destination-name" element
034 */
035 public java.lang.String getMessageDestinationName()
036 {
037 synchronized (monitor())
038 {
039 check_orphaned();
040 org.apache.xmlbeans.SimpleValue target = null;
041 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MESSAGEDESTINATIONNAME$0, 0);
042 if (target == null)
043 {
044 return null;
045 }
046 return target.getStringValue();
047 }
048 }
049
050 /**
051 * Gets (as xml) the "message-destination-name" element
052 */
053 public org.apache.xmlbeans.XmlString xgetMessageDestinationName()
054 {
055 synchronized (monitor())
056 {
057 check_orphaned();
058 org.apache.xmlbeans.XmlString target = null;
059 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MESSAGEDESTINATIONNAME$0, 0);
060 return target;
061 }
062 }
063
064 /**
065 * Sets the "message-destination-name" element
066 */
067 public void setMessageDestinationName(java.lang.String messageDestinationName)
068 {
069 synchronized (monitor())
070 {
071 check_orphaned();
072 org.apache.xmlbeans.SimpleValue target = null;
073 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MESSAGEDESTINATIONNAME$0, 0);
074 if (target == null)
075 {
076 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MESSAGEDESTINATIONNAME$0);
077 }
078 target.setStringValue(messageDestinationName);
079 }
080 }
081
082 /**
083 * Sets (as xml) the "message-destination-name" element
084 */
085 public void xsetMessageDestinationName(org.apache.xmlbeans.XmlString messageDestinationName)
086 {
087 synchronized (monitor())
088 {
089 check_orphaned();
090 org.apache.xmlbeans.XmlString target = null;
091 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MESSAGEDESTINATIONNAME$0, 0);
092 if (target == null)
093 {
094 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(MESSAGEDESTINATIONNAME$0);
095 }
096 target.set(messageDestinationName);
097 }
098 }
099
100 /**
101 * Gets the "pattern" element
102 */
103 public org.apache.geronimo.xbeans.geronimo.naming.GerPatternType getPattern()
104 {
105 synchronized (monitor())
106 {
107 check_orphaned();
108 org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null;
109 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().find_element_user(PATTERN$2, 0);
110 if (target == null)
111 {
112 return null;
113 }
114 return target;
115 }
116 }
117
118 /**
119 * True if has "pattern" element
120 */
121 public boolean isSetPattern()
122 {
123 synchronized (monitor())
124 {
125 check_orphaned();
126 return get_store().count_elements(PATTERN$2) != 0;
127 }
128 }
129
130 /**
131 * Sets the "pattern" element
132 */
133 public void setPattern(org.apache.geronimo.xbeans.geronimo.naming.GerPatternType pattern)
134 {
135 synchronized (monitor())
136 {
137 check_orphaned();
138 org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null;
139 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().find_element_user(PATTERN$2, 0);
140 if (target == null)
141 {
142 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().add_element_user(PATTERN$2);
143 }
144 target.set(pattern);
145 }
146 }
147
148 /**
149 * Appends and returns a new empty "pattern" element
150 */
151 public org.apache.geronimo.xbeans.geronimo.naming.GerPatternType addNewPattern()
152 {
153 synchronized (monitor())
154 {
155 check_orphaned();
156 org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null;
157 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().add_element_user(PATTERN$2);
158 return target;
159 }
160 }
161
162 /**
163 * Unsets the "pattern" element
164 */
165 public void unsetPattern()
166 {
167 synchronized (monitor())
168 {
169 check_orphaned();
170 get_store().remove_element(PATTERN$2, 0);
171 }
172 }
173
174 /**
175 * Gets the "admin-object-module" element
176 */
177 public java.lang.String getAdminObjectModule()
178 {
179 synchronized (monitor())
180 {
181 check_orphaned();
182 org.apache.xmlbeans.SimpleValue target = null;
183 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADMINOBJECTMODULE$4, 0);
184 if (target == null)
185 {
186 return null;
187 }
188 return target.getStringValue();
189 }
190 }
191
192 /**
193 * Gets (as xml) the "admin-object-module" element
194 */
195 public org.apache.xmlbeans.XmlString xgetAdminObjectModule()
196 {
197 synchronized (monitor())
198 {
199 check_orphaned();
200 org.apache.xmlbeans.XmlString target = null;
201 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ADMINOBJECTMODULE$4, 0);
202 return target;
203 }
204 }
205
206 /**
207 * True if has "admin-object-module" element
208 */
209 public boolean isSetAdminObjectModule()
210 {
211 synchronized (monitor())
212 {
213 check_orphaned();
214 return get_store().count_elements(ADMINOBJECTMODULE$4) != 0;
215 }
216 }
217
218 /**
219 * Sets the "admin-object-module" element
220 */
221 public void setAdminObjectModule(java.lang.String adminObjectModule)
222 {
223 synchronized (monitor())
224 {
225 check_orphaned();
226 org.apache.xmlbeans.SimpleValue target = null;
227 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADMINOBJECTMODULE$4, 0);
228 if (target == null)
229 {
230 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ADMINOBJECTMODULE$4);
231 }
232 target.setStringValue(adminObjectModule);
233 }
234 }
235
236 /**
237 * Sets (as xml) the "admin-object-module" element
238 */
239 public void xsetAdminObjectModule(org.apache.xmlbeans.XmlString adminObjectModule)
240 {
241 synchronized (monitor())
242 {
243 check_orphaned();
244 org.apache.xmlbeans.XmlString target = null;
245 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ADMINOBJECTMODULE$4, 0);
246 if (target == null)
247 {
248 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ADMINOBJECTMODULE$4);
249 }
250 target.set(adminObjectModule);
251 }
252 }
253
254 /**
255 * Unsets the "admin-object-module" element
256 */
257 public void unsetAdminObjectModule()
258 {
259 synchronized (monitor())
260 {
261 check_orphaned();
262 get_store().remove_element(ADMINOBJECTMODULE$4, 0);
263 }
264 }
265
266 /**
267 * Gets the "admin-object-link" element
268 */
269 public java.lang.String getAdminObjectLink()
270 {
271 synchronized (monitor())
272 {
273 check_orphaned();
274 org.apache.xmlbeans.SimpleValue target = null;
275 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADMINOBJECTLINK$6, 0);
276 if (target == null)
277 {
278 return null;
279 }
280 return target.getStringValue();
281 }
282 }
283
284 /**
285 * Gets (as xml) the "admin-object-link" element
286 */
287 public org.apache.xmlbeans.XmlString xgetAdminObjectLink()
288 {
289 synchronized (monitor())
290 {
291 check_orphaned();
292 org.apache.xmlbeans.XmlString target = null;
293 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ADMINOBJECTLINK$6, 0);
294 return target;
295 }
296 }
297
298 /**
299 * True if has "admin-object-link" element
300 */
301 public boolean isSetAdminObjectLink()
302 {
303 synchronized (monitor())
304 {
305 check_orphaned();
306 return get_store().count_elements(ADMINOBJECTLINK$6) != 0;
307 }
308 }
309
310 /**
311 * Sets the "admin-object-link" element
312 */
313 public void setAdminObjectLink(java.lang.String adminObjectLink)
314 {
315 synchronized (monitor())
316 {
317 check_orphaned();
318 org.apache.xmlbeans.SimpleValue target = null;
319 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADMINOBJECTLINK$6, 0);
320 if (target == null)
321 {
322 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ADMINOBJECTLINK$6);
323 }
324 target.setStringValue(adminObjectLink);
325 }
326 }
327
328 /**
329 * Sets (as xml) the "admin-object-link" element
330 */
331 public void xsetAdminObjectLink(org.apache.xmlbeans.XmlString adminObjectLink)
332 {
333 synchronized (monitor())
334 {
335 check_orphaned();
336 org.apache.xmlbeans.XmlString target = null;
337 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ADMINOBJECTLINK$6, 0);
338 if (target == null)
339 {
340 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ADMINOBJECTLINK$6);
341 }
342 target.set(adminObjectLink);
343 }
344 }
345
346 /**
347 * Unsets the "admin-object-link" element
348 */
349 public void unsetAdminObjectLink()
350 {
351 synchronized (monitor())
352 {
353 check_orphaned();
354 get_store().remove_element(ADMINOBJECTLINK$6, 0);
355 }
356 }
357 }