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