001 /* 002 * XML Type: role-mappingsType 003 * Namespace: http://geronimo.apache.org/xml/ns/security-2.0 004 * Java type: org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType 005 * 006 * Automatically generated - do not modify. 007 */ 008 package org.apache.geronimo.xbeans.geronimo.security; 009 010 011 /** 012 * An XML role-mappingsType(@http://geronimo.apache.org/xml/ns/security-2.0). 013 * 014 * This is a complex type. 015 */ 016 public interface GerRoleMappingsType 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(GerRoleMappingsType.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s8F58AF319EEC34E22F0806A022BFB952").resolveHandle("rolemappingstype1485type"); 020 021 /** 022 * Gets array of all "role" elements 023 */ 024 org.apache.geronimo.xbeans.geronimo.security.GerRoleType[] getRoleArray(); 025 026 /** 027 * Gets ith "role" element 028 */ 029 org.apache.geronimo.xbeans.geronimo.security.GerRoleType getRoleArray(int i); 030 031 /** 032 * Returns number of "role" element 033 */ 034 int sizeOfRoleArray(); 035 036 /** 037 * Sets array of all "role" element 038 */ 039 void setRoleArray(org.apache.geronimo.xbeans.geronimo.security.GerRoleType[] roleArray); 040 041 /** 042 * Sets ith "role" element 043 */ 044 void setRoleArray(int i, org.apache.geronimo.xbeans.geronimo.security.GerRoleType role); 045 046 /** 047 * Inserts and returns a new empty value (as xml) as the ith "role" element 048 */ 049 org.apache.geronimo.xbeans.geronimo.security.GerRoleType insertNewRole(int i); 050 051 /** 052 * Appends and returns a new empty value (as xml) as the last "role" element 053 */ 054 org.apache.geronimo.xbeans.geronimo.security.GerRoleType addNewRole(); 055 056 /** 057 * Removes the ith "role" element 058 */ 059 void removeRole(int i); 060 061 /** 062 * A factory class with static methods for creating instances 063 * of this type. 064 */ 065 066 public static final class Factory 067 { 068 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType newInstance() { 069 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); } 070 071 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType newInstance(org.apache.xmlbeans.XmlOptions options) { 072 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); } 073 074 /** @param xmlAsString the string value to parse */ 075 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException { 076 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); } 077 078 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { 079 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); } 080 081 /** @param file the file from which to load an xml document */ 082 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException { 083 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); } 084 085 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { 086 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); } 087 088 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException { 089 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); } 090 091 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { 092 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); } 093 094 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException { 095 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); } 096 097 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { 098 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); } 099 100 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException { 101 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); } 102 103 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { 104 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); } 105 106 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException { 107 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); } 108 109 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { 110 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); } 111 112 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException { 113 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); } 114 115 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { 116 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); } 117 118 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ 119 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { 120 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); } 121 122 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ 123 public static org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { 124 return (org.apache.geronimo.xbeans.geronimo.security.GerRoleMappingsType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); } 125 126 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ 127 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 { 128 return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); } 129 130 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ 131 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 { 132 return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); } 133 134 private Factory() { } // No instance of this class allowed 135 } 136 }