001 /*
002 * XML Type: compoundSecMechType
003 * Namespace: http://openejb.apache.org/xml/ns/corba-tss-config-2.1
004 * Java type: org.apache.geronimo.corba.xbeans.csiv2.tss.TSSCompoundSecMechType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.corba.xbeans.csiv2.tss.impl;
009 /**
010 * An XML compoundSecMechType(@http://openejb.apache.org/xml/ns/corba-tss-config-2.1).
011 *
012 * This is a complex type.
013 */
014 public class TSSCompoundSecMechTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.corba.xbeans.csiv2.tss.TSSCompoundSecMechType
015 {
016
017 public TSSCompoundSecMechTypeImpl(org.apache.xmlbeans.SchemaType sType)
018 {
019 super(sType);
020 }
021
022 private static final javax.xml.namespace.QName DESCRIPTION$0 =
023 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-tss-config-2.1", "description");
024 private static final javax.xml.namespace.QName GSSUP$2 =
025 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-tss-config-2.1", "GSSUP");
026 private static final javax.xml.namespace.QName SASMECH$4 =
027 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-tss-config-2.1", "sasMech");
028
029
030 /**
031 * Gets array of all "description" elements
032 */
033 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType[] getDescriptionArray()
034 {
035 synchronized (monitor())
036 {
037 check_orphaned();
038 java.util.List targetList = new java.util.ArrayList();
039 get_store().find_all_element_users(DESCRIPTION$0, targetList);
040 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType[] result = new org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType[targetList.size()];
041 targetList.toArray(result);
042 return result;
043 }
044 }
045
046 /**
047 * Gets ith "description" element
048 */
049 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType getDescriptionArray(int i)
050 {
051 synchronized (monitor())
052 {
053 check_orphaned();
054 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType target = null;
055 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType)get_store().find_element_user(DESCRIPTION$0, i);
056 if (target == null)
057 {
058 throw new IndexOutOfBoundsException();
059 }
060 return target;
061 }
062 }
063
064 /**
065 * Returns number of "description" element
066 */
067 public int sizeOfDescriptionArray()
068 {
069 synchronized (monitor())
070 {
071 check_orphaned();
072 return get_store().count_elements(DESCRIPTION$0);
073 }
074 }
075
076 /**
077 * Sets array of all "description" element
078 */
079 public void setDescriptionArray(org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType[] descriptionArray)
080 {
081 synchronized (monitor())
082 {
083 check_orphaned();
084 arraySetterHelper(descriptionArray, DESCRIPTION$0);
085 }
086 }
087
088 /**
089 * Sets ith "description" element
090 */
091 public void setDescriptionArray(int i, org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType description)
092 {
093 synchronized (monitor())
094 {
095 check_orphaned();
096 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType target = null;
097 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType)get_store().find_element_user(DESCRIPTION$0, i);
098 if (target == null)
099 {
100 throw new IndexOutOfBoundsException();
101 }
102 target.set(description);
103 }
104 }
105
106 /**
107 * Inserts and returns a new empty value (as xml) as the ith "description" element
108 */
109 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType insertNewDescription(int i)
110 {
111 synchronized (monitor())
112 {
113 check_orphaned();
114 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType target = null;
115 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType)get_store().insert_element_user(DESCRIPTION$0, i);
116 return target;
117 }
118 }
119
120 /**
121 * Appends and returns a new empty value (as xml) as the last "description" element
122 */
123 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType addNewDescription()
124 {
125 synchronized (monitor())
126 {
127 check_orphaned();
128 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType target = null;
129 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType)get_store().add_element_user(DESCRIPTION$0);
130 return target;
131 }
132 }
133
134 /**
135 * Removes the ith "description" element
136 */
137 public void removeDescription(int i)
138 {
139 synchronized (monitor())
140 {
141 check_orphaned();
142 get_store().remove_element(DESCRIPTION$0, i);
143 }
144 }
145
146 /**
147 * Gets the "GSSUP" element
148 */
149 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGSSUPType getGSSUP()
150 {
151 synchronized (monitor())
152 {
153 check_orphaned();
154 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGSSUPType target = null;
155 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGSSUPType)get_store().find_element_user(GSSUP$2, 0);
156 if (target == null)
157 {
158 return null;
159 }
160 return target;
161 }
162 }
163
164 /**
165 * True if has "GSSUP" element
166 */
167 public boolean isSetGSSUP()
168 {
169 synchronized (monitor())
170 {
171 check_orphaned();
172 return get_store().count_elements(GSSUP$2) != 0;
173 }
174 }
175
176 /**
177 * Sets the "GSSUP" element
178 */
179 public void setGSSUP(org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGSSUPType gssup)
180 {
181 synchronized (monitor())
182 {
183 check_orphaned();
184 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGSSUPType target = null;
185 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGSSUPType)get_store().find_element_user(GSSUP$2, 0);
186 if (target == null)
187 {
188 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGSSUPType)get_store().add_element_user(GSSUP$2);
189 }
190 target.set(gssup);
191 }
192 }
193
194 /**
195 * Appends and returns a new empty "GSSUP" element
196 */
197 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGSSUPType addNewGSSUP()
198 {
199 synchronized (monitor())
200 {
201 check_orphaned();
202 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGSSUPType target = null;
203 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGSSUPType)get_store().add_element_user(GSSUP$2);
204 return target;
205 }
206 }
207
208 /**
209 * Unsets the "GSSUP" element
210 */
211 public void unsetGSSUP()
212 {
213 synchronized (monitor())
214 {
215 check_orphaned();
216 get_store().remove_element(GSSUP$2, 0);
217 }
218 }
219
220 /**
221 * Gets the "sasMech" element
222 */
223 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType getSasMech()
224 {
225 synchronized (monitor())
226 {
227 check_orphaned();
228 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType target = null;
229 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType)get_store().find_element_user(SASMECH$4, 0);
230 if (target == null)
231 {
232 return null;
233 }
234 return target;
235 }
236 }
237
238 /**
239 * True if has "sasMech" element
240 */
241 public boolean isSetSasMech()
242 {
243 synchronized (monitor())
244 {
245 check_orphaned();
246 return get_store().count_elements(SASMECH$4) != 0;
247 }
248 }
249
250 /**
251 * Sets the "sasMech" element
252 */
253 public void setSasMech(org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType sasMech)
254 {
255 synchronized (monitor())
256 {
257 check_orphaned();
258 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType target = null;
259 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType)get_store().find_element_user(SASMECH$4, 0);
260 if (target == null)
261 {
262 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType)get_store().add_element_user(SASMECH$4);
263 }
264 target.set(sasMech);
265 }
266 }
267
268 /**
269 * Appends and returns a new empty "sasMech" element
270 */
271 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType addNewSasMech()
272 {
273 synchronized (monitor())
274 {
275 check_orphaned();
276 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType target = null;
277 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType)get_store().add_element_user(SASMECH$4);
278 return target;
279 }
280 }
281
282 /**
283 * Unsets the "sasMech" element
284 */
285 public void unsetSasMech()
286 {
287 synchronized (monitor())
288 {
289 check_orphaned();
290 get_store().remove_element(SASMECH$4, 0);
291 }
292 }
293 }