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