1 /*
2 * An XML document type.
3 * Localname: employees
4 * Namespace: http://xmlbeans.apache.org/samples/xquery/employees
5 * Java type: org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument
6 *
7 * Automatically generated - do not modify.
8 */
9 package org.apache.xmlbeans.samples.xquery.employees;
10
11
12 /**
13 * A document containing one employees(@http://xmlbeans.apache.org/samples/xquery/employees) element.
14 *
15 * This is a complex type.
16 */
17 public interface EmployeesDocument extends org.apache.xmlbeans.XmlObject
18 {
19 public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)schema.system.sD4FB2ECA19277E984CA2AB92FEEBD267.TypeSystemHolder.typeSystem.resolveHandle("employees8e53doctype");
20
21 /**
22 * Gets the "employees" element
23 */
24 org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees getEmployees();
25
26 /**
27 * Sets the "employees" element
28 */
29 void setEmployees(org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees employees);
30
31 /**
32 * Appends and returns a new empty "employees" element
33 */
34 org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees addNewEmployees();
35
36 /**
37 * An XML employees(@http://xmlbeans.apache.org/samples/xquery/employees).
38 *
39 * This is a complex type.
40 */
41 public interface Employees extends org.apache.xmlbeans.XmlObject
42 {
43 public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)schema.system.sD4FB2ECA19277E984CA2AB92FEEBD267.TypeSystemHolder.typeSystem.resolveHandle("employees9844elemtype");
44
45 /**
46 * Gets array of all "employee" elements
47 */
48 org.apache.xmlbeans.samples.xquery.employees.EmployeeType[] getEmployeeArray();
49
50 /**
51 * Gets ith "employee" element
52 */
53 org.apache.xmlbeans.samples.xquery.employees.EmployeeType getEmployeeArray(int i);
54
55 /**
56 * Returns number of "employee" element
57 */
58 int sizeOfEmployeeArray();
59
60 /**
61 * Sets array of all "employee" element
62 */
63 void setEmployeeArray(org.apache.xmlbeans.samples.xquery.employees.EmployeeType[] employeeArray);
64
65 /**
66 * Sets ith "employee" element
67 */
68 void setEmployeeArray(int i, org.apache.xmlbeans.samples.xquery.employees.EmployeeType employee);
69
70 /**
71 * Inserts and returns a new empty value (as xml) as the ith "employee" element
72 */
73 org.apache.xmlbeans.samples.xquery.employees.EmployeeType insertNewEmployee(int i);
74
75 /**
76 * Appends and returns a new empty value (as xml) as the last "employee" element
77 */
78 org.apache.xmlbeans.samples.xquery.employees.EmployeeType addNewEmployee();
79
80 /**
81 * Removes the ith "employee" element
82 */
83 void removeEmployee(int i);
84
85 /**
86 * A factory class with static methods for creating instances
87 * of this type.
88 */
89
90 public static final class Factory
91 {
92 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees newInstance() {
93 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
94
95 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees newInstance(org.apache.xmlbeans.XmlOptions options) {
96 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument.Employees) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
97
98 private Factory() { } // No instance of this class allowed
99 }
100 }
101
102 /**
103 * A factory class with static methods for creating instances
104 * of this type.
105 */
106
107 public static final class Factory
108 {
109 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument newInstance() {
110 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
111
112 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument newInstance(org.apache.xmlbeans.XmlOptions options) {
113 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
114
115 /** @param xmlAsString the string value to parse */
116 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
117 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
118
119 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
120 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
121
122 /** @param file the file from which to load an xml document */
123 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
124 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
125
126 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
127 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
128
129 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
130 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
131
132 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
133 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
134
135 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
136 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
137
138 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
139 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
140
141 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
142 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
143
144 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
145 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
146
147 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
148 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
149
150 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
151 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
152
153 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
154 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
155
156 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
157 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
158
159 /** @deprecated {@link XMLInputStream} */
160 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
161 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
162
163 /** @deprecated {@link XMLInputStream} */
164 public static org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
165 return (org.apache.xmlbeans.samples.xquery.employees.EmployeesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
166
167 /** @deprecated {@link XMLInputStream} */
168 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 {
169 return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
170
171 /** @deprecated {@link XMLInputStream} */
172 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 {
173 return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
174
175 private Factory() { } // No instance of this class allowed
176 }
177 }