001: /*
002: * An XML document type.
003: * Localname: employees
004: * Namespace: http://xmlbeans.apache.org/samples/xquery/employees
005: * Java type: org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument
006: *
007: * Automatically generated - do not modify.
008: */
009: package org.apache.xmlbeans.samples.xquery.employees;
010:
011: /**
012: * A document containing one employees(@http://xmlbeans.apache.org/samples/xquery/employees) element.
013: *
014: * This is a complex type.
015: */
016: public interface EmployeesDocument extends
017: org.apache.xmlbeans.XmlObject {
018: public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType) org.apache.xmlbeans.XmlBeans
019: .typeSystemForClassLoader(
020: EmployeesDocument.class.getClassLoader(),
021: "schemaorg_apache_xmlbeans.system.sD4FB2ECA19277E984CA2AB92FEEBD267")
022: .resolveHandle("employees8e53doctype");
023:
024: /**
025: * Gets the "employees" element
026: */
027: org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees getEmployees();
028:
029: /**
030: * Sets the "employees" element
031: */
032: void setEmployees(
033: org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees employees);
034:
035: /**
036: * Appends and returns a new empty "employees" element
037: */
038: org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees addNewEmployees();
039:
040: /**
041: * An XML employees(@http://xmlbeans.apache.org/samples/xquery/employees).
042: *
043: * This is a complex type.
044: */
045: public interface Employees extends org.apache.xmlbeans.XmlObject {
046: public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType) org.apache.xmlbeans.XmlBeans
047: .typeSystemForClassLoader(
048: Employees.class.getClassLoader(),
049: "schemaorg_apache_xmlbeans.system.sD4FB2ECA19277E984CA2AB92FEEBD267")
050: .resolveHandle("employees9844elemtype");
051:
052: /**
053: * Gets array of all "employee" elements
054: */
055: org.apache.xmlbeans.samples.xquery.employees.EmployeeType[] getEmployeeArray();
056:
057: /**
058: * Gets ith "employee" element
059: */
060: org.apache.xmlbeans.samples.xquery.employees.EmployeeType getEmployeeArray(
061: int i);
062:
063: /**
064: * Returns number of "employee" element
065: */
066: int sizeOfEmployeeArray();
067:
068: /**
069: * Sets array of all "employee" element
070: */
071: void setEmployeeArray(
072: org.apache.xmlbeans.samples.xquery.employees.EmployeeType[] employeeArray);
073:
074: /**
075: * Sets ith "employee" element
076: */
077: void setEmployeeArray(
078: int i,
079: org.apache.xmlbeans.samples.xquery.employees.EmployeeType employee);
080:
081: /**
082: * Inserts and returns a new empty value (as xml) as the ith "employee" element
083: */
084: org.apache.xmlbeans.samples.xquery.employees.EmployeeType insertNewEmployee(
085: int i);
086:
087: /**
088: * Appends and returns a new empty value (as xml) as the last "employee" element
089: */
090: org.apache.xmlbeans.samples.xquery.employees.EmployeeType addNewEmployee();
091:
092: /**
093: * Removes the ith "employee" element
094: */
095: void removeEmployee(int i);
096:
097: /**
098: * A factory class with static methods for creating instances
099: * of this type.
100: */
101:
102: public static final class Factory {
103: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees newInstance() {
104: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees) org.apache.xmlbeans.XmlBeans
105: .getContextTypeLoader().newInstance(type, null);
106: }
107:
108: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees newInstance(
109: org.apache.xmlbeans.XmlOptions options) {
110: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees) org.apache.xmlbeans.XmlBeans
111: .getContextTypeLoader().newInstance(type,
112: options);
113: }
114:
115: private Factory() {
116: } // No instance of this class allowed
117: }
118: }
119:
120: /**
121: * A factory class with static methods for creating instances
122: * of this type.
123: */
124:
125: public static final class Factory {
126: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument newInstance() {
127: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans
128: .getContextTypeLoader().newInstance(type, null);
129: }
130:
131: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument newInstance(
132: org.apache.xmlbeans.XmlOptions options) {
133: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans
134: .getContextTypeLoader().newInstance(type, options);
135: }
136:
137: /** @param xmlAsString the string value to parse */
138: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(
139: java.lang.String xmlAsString)
140: throws org.apache.xmlbeans.XmlException {
141: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans
142: .getContextTypeLoader().parse(xmlAsString, type,
143: null);
144: }
145:
146: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(
147: java.lang.String xmlAsString,
148: org.apache.xmlbeans.XmlOptions options)
149: throws org.apache.xmlbeans.XmlException {
150: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans
151: .getContextTypeLoader().parse(xmlAsString, type,
152: options);
153: }
154:
155: /** @param file the file from which to load an xml document */
156: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(
157: java.io.File file)
158: throws org.apache.xmlbeans.XmlException,
159: java.io.IOException {
160: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans
161: .getContextTypeLoader().parse(file, type, null);
162: }
163:
164: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(
165: java.io.File file,
166: org.apache.xmlbeans.XmlOptions options)
167: throws org.apache.xmlbeans.XmlException,
168: java.io.IOException {
169: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans
170: .getContextTypeLoader().parse(file, type, options);
171: }
172:
173: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(
174: java.net.URL u)
175: throws org.apache.xmlbeans.XmlException,
176: java.io.IOException {
177: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans
178: .getContextTypeLoader().parse(u, type, null);
179: }
180:
181: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(
182: java.net.URL u, org.apache.xmlbeans.XmlOptions options)
183: throws org.apache.xmlbeans.XmlException,
184: java.io.IOException {
185: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans
186: .getContextTypeLoader().parse(u, type, options);
187: }
188:
189: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(
190: java.io.InputStream is)
191: throws org.apache.xmlbeans.XmlException,
192: java.io.IOException {
193: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans
194: .getContextTypeLoader().parse(is, type, null);
195: }
196:
197: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(
198: java.io.InputStream is,
199: org.apache.xmlbeans.XmlOptions options)
200: throws org.apache.xmlbeans.XmlException,
201: java.io.IOException {
202: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans
203: .getContextTypeLoader().parse(is, type, options);
204: }
205:
206: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(
207: java.io.Reader r)
208: throws org.apache.xmlbeans.XmlException,
209: java.io.IOException {
210: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans
211: .getContextTypeLoader().parse(r, type, null);
212: }
213:
214: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(
215: java.io.Reader r, org.apache.xmlbeans.XmlOptions options)
216: throws org.apache.xmlbeans.XmlException,
217: java.io.IOException {
218: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans
219: .getContextTypeLoader().parse(r, type, options);
220: }
221:
222: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(
223: javax.xml.stream.XMLStreamReader sr)
224: throws org.apache.xmlbeans.XmlException {
225: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans
226: .getContextTypeLoader().parse(sr, type, null);
227: }
228:
229: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(
230: javax.xml.stream.XMLStreamReader sr,
231: org.apache.xmlbeans.XmlOptions options)
232: throws org.apache.xmlbeans.XmlException {
233: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans
234: .getContextTypeLoader().parse(sr, type, options);
235: }
236:
237: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(
238: org.w3c.dom.Node node)
239: throws org.apache.xmlbeans.XmlException {
240: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans
241: .getContextTypeLoader().parse(node, type, null);
242: }
243:
244: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(
245: org.w3c.dom.Node node,
246: org.apache.xmlbeans.XmlOptions options)
247: throws org.apache.xmlbeans.XmlException {
248: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans
249: .getContextTypeLoader().parse(node, type, options);
250: }
251:
252: /** @deprecated {@link XMLInputStream} */
253: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(
254: org.apache.xmlbeans.xml.stream.XMLInputStream xis)
255: throws org.apache.xmlbeans.XmlException,
256: org.apache.xmlbeans.xml.stream.XMLStreamException {
257: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans
258: .getContextTypeLoader().parse(xis, type, null);
259: }
260:
261: /** @deprecated {@link XMLInputStream} */
262: public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(
263: org.apache.xmlbeans.xml.stream.XMLInputStream xis,
264: org.apache.xmlbeans.XmlOptions options)
265: throws org.apache.xmlbeans.XmlException,
266: org.apache.xmlbeans.xml.stream.XMLStreamException {
267: return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans
268: .getContextTypeLoader().parse(xis, type, options);
269: }
270:
271: /** @deprecated {@link XMLInputStream} */
272: public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(
273: org.apache.xmlbeans.xml.stream.XMLInputStream xis)
274: throws org.apache.xmlbeans.XmlException,
275: org.apache.xmlbeans.xml.stream.XMLStreamException {
276: return org.apache.xmlbeans.XmlBeans.getContextTypeLoader()
277: .newValidatingXMLInputStream(xis, type, null);
278: }
279:
280: /** @deprecated {@link XMLInputStream} */
281: public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(
282: org.apache.xmlbeans.xml.stream.XMLInputStream xis,
283: org.apache.xmlbeans.XmlOptions options)
284: throws org.apache.xmlbeans.XmlException,
285: org.apache.xmlbeans.xml.stream.XMLStreamException {
286: return org.apache.xmlbeans.XmlBeans.getContextTypeLoader()
287: .newValidatingXMLInputStream(xis, type, options);
288: }
289:
290: private Factory() {
291: } // No instance of this class allowed
292: }
293: }
|