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