001 /*
002 * XML Type: roleType
003 * Namespace: http://geronimo.apache.org/xml/ns/security-2.0
004 * Java type: org.apache.geronimo.xbeans.geronimo.security.GerRoleType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.xbeans.geronimo.security;
009
010
011 /**
012 * An XML roleType(@http://geronimo.apache.org/xml/ns/security-2.0).
013 *
014 * This is a complex type.
015 */
016 public interface GerRoleType extends org.apache.xmlbeans.XmlObject
017 {
018 public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
019 org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(GerRoleType.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s8F58AF319EEC34E22F0806A022BFB952").resolveHandle("roletypeabb9type");
020
021 /**
022 * Gets array of all "description" elements
023 */
024 org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType[] getDescriptionArray();
025
026 /**
027 * Gets ith "description" element
028 */
029 org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType getDescriptionArray(int i);
030
031 /**
032 * Returns number of "description" element
033 */
034 int sizeOfDescriptionArray();
035
036 /**
037 * Sets array of all "description" element
038 */
039 void setDescriptionArray(org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType[] descriptionArray);
040
041 /**
042 * Sets ith "description" element
043 */
044 void setDescriptionArray(int i, org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType description);
045
046 /**
047 * Inserts and returns a new empty value (as xml) as the ith "description" element
048 */
049 org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType insertNewDescription(int i);
050
051 /**
052 * Appends and returns a new empty value (as xml) as the last "description" element
053 */
054 org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType addNewDescription();
055
056 /**
057 * Removes the ith "description" element
058 */
059 void removeDescription(int i);
060
061 /**
062 * Gets the "run-as-subject" element
063 */
064 org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType getRunAsSubject();
065
066 /**
067 * True if has "run-as-subject" element
068 */
069 boolean isSetRunAsSubject();
070
071 /**
072 * Sets the "run-as-subject" element
073 */
074 void setRunAsSubject(org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType runAsSubject);
075
076 /**
077 * Appends and returns a new empty "run-as-subject" element
078 */
079 org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType addNewRunAsSubject();
080
081 /**
082 * Unsets the "run-as-subject" element
083 */
084 void unsetRunAsSubject();
085
086 /**
087 * Gets array of all "realm-principal" elements
088 */
089 org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType[] getRealmPrincipalArray();
090
091 /**
092 * Gets ith "realm-principal" element
093 */
094 org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType getRealmPrincipalArray(int i);
095
096 /**
097 * Returns number of "realm-principal" element
098 */
099 int sizeOfRealmPrincipalArray();
100
101 /**
102 * Sets array of all "realm-principal" element
103 */
104 void setRealmPrincipalArray(org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType[] realmPrincipalArray);
105
106 /**
107 * Sets ith "realm-principal" element
108 */
109 void setRealmPrincipalArray(int i, org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType realmPrincipal);
110
111 /**
112 * Inserts and returns a new empty value (as xml) as the ith "realm-principal" element
113 */
114 org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType insertNewRealmPrincipal(int i);
115
116 /**
117 * Appends and returns a new empty value (as xml) as the last "realm-principal" element
118 */
119 org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType addNewRealmPrincipal();
120
121 /**
122 * Removes the ith "realm-principal" element
123 */
124 void removeRealmPrincipal(int i);
125
126 /**
127 * Gets array of all "login-domain-principal" elements
128 */
129 org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType[] getLoginDomainPrincipalArray();
130
131 /**
132 * Gets ith "login-domain-principal" element
133 */
134 org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType getLoginDomainPrincipalArray(int i);
135
136 /**
137 * Returns number of "login-domain-principal" element
138 */
139 int sizeOfLoginDomainPrincipalArray();
140
141 /**
142 * Sets array of all "login-domain-principal" element
143 */
144 void setLoginDomainPrincipalArray(org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType[] loginDomainPrincipalArray);
145
146 /**
147 * Sets ith "login-domain-principal" element
148 */
149 void setLoginDomainPrincipalArray(int i, org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType loginDomainPrincipal);
150
151 /**
152 * Inserts and returns a new empty value (as xml) as the ith "login-domain-principal" element
153 */
154 org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType insertNewLoginDomainPrincipal(int i);
155
156 /**
157 * Appends and returns a new empty value (as xml) as the last "login-domain-principal" element
158 */
159 org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType addNewLoginDomainPrincipal();
160
161 /**
162 * Removes the ith "login-domain-principal" element
163 */
164 void removeLoginDomainPrincipal(int i);
165
166 /**
167 * Gets array of all "principal" elements
168 */
169 org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType[] getPrincipalArray();
170
171 /**
172 * Gets ith "principal" element
173 */
174 org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType getPrincipalArray(int i);
175
176 /**
177 * Returns number of "principal" element
178 */
179 int sizeOfPrincipalArray();
180
181 /**
182 * Sets array of all "principal" element
183 */
184 void setPrincipalArray(org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType[] principalArray);
185
186 /**
187 * Sets ith "principal" element
188 */
189 void setPrincipalArray(int i, org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType principal);
190
191 /**
192 * Inserts and returns a new empty value (as xml) as the ith "principal" element
193 */
194 org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType insertNewPrincipal(int i);
195
196 /**
197 * Appends and returns a new empty value (as xml) as the last "principal" element
198 */
199 org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType addNewPrincipal();
200
201 /**
202 * Removes the ith "principal" element
203 */
204 void removePrincipal(int i);
205
206 /**
207 * Gets array of all "distinguished-name" elements
208 */
209 org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType[] getDistinguishedNameArray();
210
211 /**
212 * Gets ith "distinguished-name" element
213 */
214 org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType getDistinguishedNameArray(int i);
215
216 /**
217 * Returns number of "distinguished-name" element
218 */
219 int sizeOfDistinguishedNameArray();
220
221 /**
222 * Sets array of all "distinguished-name" element
223 */
224 void setDistinguishedNameArray(org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType[] distinguishedNameArray);
225
226 /**
227 * Sets ith "distinguished-name" element
228 */
229 void setDistinguishedNameArray(int i, org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType distinguishedName);
230
231 /**
232 * Inserts and returns a new empty value (as xml) as the ith "distinguished-name" element
233 */
234 org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType insertNewDistinguishedName(int i);
235
236 /**
237 * Appends and returns a new empty value (as xml) as the last "distinguished-name" element
238 */
239 org.apache.geronimo.xbeans.geronimo.security.GerDistinguishedNameType addNewDistinguishedName();
240
241 /**
242 * Removes the ith "distinguished-name" element
243 */
244 void removeDistinguishedName(int i);
245
246 /**
247 * Gets the "role-name" attribute
248 */
249 java.lang.String getRoleName();
250
251 /**
252 * Gets (as xml) the "role-name" attribute
253 */
254 org.apache.xmlbeans.XmlString xgetRoleName();
255
256 /**
257 * Sets the "role-name" attribute
258 */
259 void setRoleName(java.lang.String roleName);
260
261 /**
262 * Sets (as xml) the "role-name" attribute
263 */
264 void xsetRoleName(org.apache.xmlbeans.XmlString roleName);
265
266 /**
267 * A factory class with static methods for creating instances
268 * of this type.
269 */
270
271 public static final class Factory
272 {
273 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleType newInstance() {
274 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
275
276 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleType newInstance(org.apache.xmlbeans.XmlOptions options) {
277 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
278
279 /** @param xmlAsString the string value to parse */
280 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleType parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
281 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
282
283 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleType parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
284 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
285
286 /** @param file the file from which to load an xml document */
287 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleType parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
288 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
289
290 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleType parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
291 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
292
293 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleType parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
294 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
295
296 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleType parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
297 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
298
299 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleType parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
300 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
301
302 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleType parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
303 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
304
305 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleType parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
306 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
307
308 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleType parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
309 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
310
311 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleType parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
312 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
313
314 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleType parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
315 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
316
317 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleType parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
318 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
319
320 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleType parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
321 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
322
323 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
324 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
325 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
326
327 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
328 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
329 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
330
331 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
332 public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
333 return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
334
335 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
336 public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
337 return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
338
339 private Factory() { } // No instance of this class allowed
340 }
341 }