001 /*
002 * XML Type: classFilterType
003 * Namespace: http://geronimo.apache.org/xml/ns/deployment-1.2
004 * Java type: org.apache.geronimo.deployment.xbeans.ClassFilterType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.deployment.xbeans.impl;
009 /**
010 * An XML classFilterType(@http://geronimo.apache.org/xml/ns/deployment-1.2).
011 *
012 * This is a complex type.
013 */
014 public class ClassFilterTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.deployment.xbeans.ClassFilterType
015 {
016
017 public ClassFilterTypeImpl(org.apache.xmlbeans.SchemaType sType)
018 {
019 super(sType);
020 }
021
022 private static final javax.xml.namespace.QName FILTER$0 =
023 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "filter");
024
025
026 /**
027 * Gets array of all "filter" elements
028 */
029 public java.lang.String[] getFilterArray()
030 {
031 synchronized (monitor())
032 {
033 check_orphaned();
034 java.util.List targetList = new java.util.ArrayList();
035 get_store().find_all_element_users(FILTER$0, targetList);
036 java.lang.String[] result = new java.lang.String[targetList.size()];
037 for (int i = 0, len = targetList.size() ; i < len ; i++)
038 result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
039 return result;
040 }
041 }
042
043 /**
044 * Gets ith "filter" element
045 */
046 public java.lang.String getFilterArray(int i)
047 {
048 synchronized (monitor())
049 {
050 check_orphaned();
051 org.apache.xmlbeans.SimpleValue target = null;
052 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FILTER$0, i);
053 if (target == null)
054 {
055 throw new IndexOutOfBoundsException();
056 }
057 return target.getStringValue();
058 }
059 }
060
061 /**
062 * Gets (as xml) array of all "filter" elements
063 */
064 public org.apache.xmlbeans.XmlString[] xgetFilterArray()
065 {
066 synchronized (monitor())
067 {
068 check_orphaned();
069 java.util.List targetList = new java.util.ArrayList();
070 get_store().find_all_element_users(FILTER$0, targetList);
071 org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
072 targetList.toArray(result);
073 return result;
074 }
075 }
076
077 /**
078 * Gets (as xml) ith "filter" element
079 */
080 public org.apache.xmlbeans.XmlString xgetFilterArray(int i)
081 {
082 synchronized (monitor())
083 {
084 check_orphaned();
085 org.apache.xmlbeans.XmlString target = null;
086 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FILTER$0, i);
087 if (target == null)
088 {
089 throw new IndexOutOfBoundsException();
090 }
091 return (org.apache.xmlbeans.XmlString)target;
092 }
093 }
094
095 /**
096 * Returns number of "filter" element
097 */
098 public int sizeOfFilterArray()
099 {
100 synchronized (monitor())
101 {
102 check_orphaned();
103 return get_store().count_elements(FILTER$0);
104 }
105 }
106
107 /**
108 * Sets array of all "filter" element
109 */
110 public void setFilterArray(java.lang.String[] filterArray)
111 {
112 synchronized (monitor())
113 {
114 check_orphaned();
115 arraySetterHelper(filterArray, FILTER$0);
116 }
117 }
118
119 /**
120 * Sets ith "filter" element
121 */
122 public void setFilterArray(int i, java.lang.String filter)
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(FILTER$0, i);
129 if (target == null)
130 {
131 throw new IndexOutOfBoundsException();
132 }
133 target.setStringValue(filter);
134 }
135 }
136
137 /**
138 * Sets (as xml) array of all "filter" element
139 */
140 public void xsetFilterArray(org.apache.xmlbeans.XmlString[]filterArray)
141 {
142 synchronized (monitor())
143 {
144 check_orphaned();
145 arraySetterHelper(filterArray, FILTER$0);
146 }
147 }
148
149 /**
150 * Sets (as xml) ith "filter" element
151 */
152 public void xsetFilterArray(int i, org.apache.xmlbeans.XmlString filter)
153 {
154 synchronized (monitor())
155 {
156 check_orphaned();
157 org.apache.xmlbeans.XmlString target = null;
158 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FILTER$0, i);
159 if (target == null)
160 {
161 throw new IndexOutOfBoundsException();
162 }
163 target.set(filter);
164 }
165 }
166
167 /**
168 * Inserts the value as the ith "filter" element
169 */
170 public void insertFilter(int i, java.lang.String filter)
171 {
172 synchronized (monitor())
173 {
174 check_orphaned();
175 org.apache.xmlbeans.SimpleValue target =
176 (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(FILTER$0, i);
177 target.setStringValue(filter);
178 }
179 }
180
181 /**
182 * Appends the value as the last "filter" element
183 */
184 public void addFilter(java.lang.String filter)
185 {
186 synchronized (monitor())
187 {
188 check_orphaned();
189 org.apache.xmlbeans.SimpleValue target = null;
190 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FILTER$0);
191 target.setStringValue(filter);
192 }
193 }
194
195 /**
196 * Inserts and returns a new empty value (as xml) as the ith "filter" element
197 */
198 public org.apache.xmlbeans.XmlString insertNewFilter(int i)
199 {
200 synchronized (monitor())
201 {
202 check_orphaned();
203 org.apache.xmlbeans.XmlString target = null;
204 target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(FILTER$0, i);
205 return target;
206 }
207 }
208
209 /**
210 * Appends and returns a new empty value (as xml) as the last "filter" element
211 */
212 public org.apache.xmlbeans.XmlString addNewFilter()
213 {
214 synchronized (monitor())
215 {
216 check_orphaned();
217 org.apache.xmlbeans.XmlString target = null;
218 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(FILTER$0);
219 return target;
220 }
221 }
222
223 /**
224 * Removes the ith "filter" element
225 */
226 public void removeFilter(int i)
227 {
228 synchronized (monitor())
229 {
230 check_orphaned();
231 get_store().remove_element(FILTER$0, i);
232 }
233 }
234 }