001    /*
002     * XML Type:  default-principalType
003     * Namespace: http://geronimo.apache.org/xml/ns/security-1.2
004     * Java type: org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType
005     *
006     * Automatically generated - do not modify.
007     */
008    package org.apache.geronimo.xbeans.geronimo.security;
009    
010    
011    /**
012     * An XML default-principalType(@http://geronimo.apache.org/xml/ns/security-1.2).
013     *
014     * This is a complex type.
015     */
016    public interface GerDefaultPrincipalType 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("defaultprincipaltypef7c0type");
019        
020        /**
021         * Gets array of all "description" elements
022         */
023        org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType[] getDescriptionArray();
024        
025        /**
026         * Gets ith "description" element
027         */
028        org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType getDescriptionArray(int i);
029        
030        /**
031         * Returns number of "description" element
032         */
033        int sizeOfDescriptionArray();
034        
035        /**
036         * Sets array of all "description" element
037         */
038        void setDescriptionArray(org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType[] descriptionArray);
039        
040        /**
041         * Sets ith "description" element
042         */
043        void setDescriptionArray(int i, org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType description);
044        
045        /**
046         * Inserts and returns a new empty value (as xml) as the ith "description" element
047         */
048        org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType insertNewDescription(int i);
049        
050        /**
051         * Appends and returns a new empty value (as xml) as the last "description" element
052         */
053        org.apache.geronimo.xbeans.geronimo.security.GerDescriptionType addNewDescription();
054        
055        /**
056         * Removes the ith "description" element
057         */
058        void removeDescription(int i);
059        
060        /**
061         * Gets the "principal" element
062         */
063        org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType getPrincipal();
064        
065        /**
066         * True if has "principal" element
067         */
068        boolean isSetPrincipal();
069        
070        /**
071         * Sets the "principal" element
072         */
073        void setPrincipal(org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType principal);
074        
075        /**
076         * Appends and returns a new empty "principal" element
077         */
078        org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType addNewPrincipal();
079        
080        /**
081         * Unsets the "principal" element
082         */
083        void unsetPrincipal();
084        
085        /**
086         * Gets the "login-domain-principal" element
087         */
088        org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType getLoginDomainPrincipal();
089        
090        /**
091         * True if has "login-domain-principal" element
092         */
093        boolean isSetLoginDomainPrincipal();
094        
095        /**
096         * Sets the "login-domain-principal" element
097         */
098        void setLoginDomainPrincipal(org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType loginDomainPrincipal);
099        
100        /**
101         * Appends and returns a new empty "login-domain-principal" element
102         */
103        org.apache.geronimo.xbeans.geronimo.security.GerLoginDomainPrincipalType addNewLoginDomainPrincipal();
104        
105        /**
106         * Unsets the "login-domain-principal" element
107         */
108        void unsetLoginDomainPrincipal();
109        
110        /**
111         * Gets the "realm-principal" element
112         */
113        org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType getRealmPrincipal();
114        
115        /**
116         * True if has "realm-principal" element
117         */
118        boolean isSetRealmPrincipal();
119        
120        /**
121         * Sets the "realm-principal" element
122         */
123        void setRealmPrincipal(org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType realmPrincipal);
124        
125        /**
126         * Appends and returns a new empty "realm-principal" element
127         */
128        org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType addNewRealmPrincipal();
129        
130        /**
131         * Unsets the "realm-principal" element
132         */
133        void unsetRealmPrincipal();
134        
135        /**
136         * Gets array of all "named-username-password-credential" elements
137         */
138        org.apache.geronimo.xbeans.geronimo.security.GerNamedUsernamePasswordCredentialType[] getNamedUsernamePasswordCredentialArray();
139        
140        /**
141         * Gets ith "named-username-password-credential" element
142         */
143        org.apache.geronimo.xbeans.geronimo.security.GerNamedUsernamePasswordCredentialType getNamedUsernamePasswordCredentialArray(int i);
144        
145        /**
146         * Returns number of "named-username-password-credential" element
147         */
148        int sizeOfNamedUsernamePasswordCredentialArray();
149        
150        /**
151         * Sets array of all "named-username-password-credential" element
152         */
153        void setNamedUsernamePasswordCredentialArray(org.apache.geronimo.xbeans.geronimo.security.GerNamedUsernamePasswordCredentialType[] namedUsernamePasswordCredentialArray);
154        
155        /**
156         * Sets ith "named-username-password-credential" element
157         */
158        void setNamedUsernamePasswordCredentialArray(int i, org.apache.geronimo.xbeans.geronimo.security.GerNamedUsernamePasswordCredentialType namedUsernamePasswordCredential);
159        
160        /**
161         * Inserts and returns a new empty value (as xml) as the ith "named-username-password-credential" element
162         */
163        org.apache.geronimo.xbeans.geronimo.security.GerNamedUsernamePasswordCredentialType insertNewNamedUsernamePasswordCredential(int i);
164        
165        /**
166         * Appends and returns a new empty value (as xml) as the last "named-username-password-credential" element
167         */
168        org.apache.geronimo.xbeans.geronimo.security.GerNamedUsernamePasswordCredentialType addNewNamedUsernamePasswordCredential();
169        
170        /**
171         * Removes the ith "named-username-password-credential" element
172         */
173        void removeNamedUsernamePasswordCredential(int i);
174        
175        /**
176         * A factory class with static methods for creating instances
177         * of this type.
178         */
179        
180        public static final class Factory
181        {
182            public static org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType newInstance() {
183              return (org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
184            
185            public static org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType newInstance(org.apache.xmlbeans.XmlOptions options) {
186              return (org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
187            
188            /** @param xmlAsString the string value to parse */
189            public static org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
190              return (org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
191            
192            public static org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
193              return (org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
194            
195            /** @param file the file from which to load an xml document */
196            public static org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
197              return (org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
198            
199            public static org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
200              return (org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
201            
202            public static org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
203              return (org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
204            
205            public static org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
206              return (org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
207            
208            public static org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
209              return (org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
210            
211            public static org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
212              return (org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
213            
214            public static org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
215              return (org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
216            
217            public static org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
218              return (org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
219            
220            public static org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
221              return (org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
222            
223            public static org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
224              return (org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
225            
226            public static org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
227              return (org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
228            
229            public static org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
230              return (org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
231            
232            /** @deprecated {@link XMLInputStream} */
233            public static org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
234              return (org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
235            
236            /** @deprecated {@link XMLInputStream} */
237            public static org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
238              return (org.apache.geronimo.xbeans.geronimo.security.GerDefaultPrincipalType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
239            
240            /** @deprecated {@link XMLInputStream} */
241            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 {
242              return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
243            
244            /** @deprecated {@link XMLInputStream} */
245            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 {
246              return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
247            
248            private Factory() { } // No instance of this class allowed
249        }
250    }