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