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