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