001: /*
002: * An XML document type.
003: * Localname: stringelement
004: * Namespace: http://xmlbeans.apache.org/samples/any
005: * Java type: org.apache.xmlbeans.samples.any.StringelementDocument
006: *
007: * Automatically generated - do not modify.
008: */
009: package org.apache.xmlbeans.samples.any;
010:
011: /**
012: * A document containing one stringelement(@http://xmlbeans.apache.org/samples/any) element.
013: *
014: * This is a complex type.
015: */
016: public interface StringelementDocument extends
017: org.apache.xmlbeans.XmlObject {
018: public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType) schema.system.s6EF7A0057B3F4CED74AE6E05BCAAB5DB.TypeSystemHolder.typeSystem
019: .resolveHandle("stringelementc479doctype");
020:
021: /**
022: * Gets the "stringelement" element
023: */
024: java.lang.String getStringelement();
025:
026: /**
027: * Gets (as xml) the "stringelement" element
028: */
029: org.apache.xmlbeans.XmlString xgetStringelement();
030:
031: /**
032: * Sets the "stringelement" element
033: */
034: void setStringelement(java.lang.String stringelement);
035:
036: /**
037: * Sets (as xml) the "stringelement" element
038: */
039: void xsetStringelement(org.apache.xmlbeans.XmlString stringelement);
040:
041: /**
042: * A factory class with static methods for creating instances
043: * of this type.
044: */
045:
046: public static final class Factory {
047: public static org.apache.xmlbeans.samples.any.StringelementDocument newInstance() {
048: return (org.apache.xmlbeans.samples.any.StringelementDocument) org.apache.xmlbeans.XmlBeans
049: .getContextTypeLoader().newInstance(type, null);
050: }
051:
052: public static org.apache.xmlbeans.samples.any.StringelementDocument newInstance(
053: org.apache.xmlbeans.XmlOptions options) {
054: return (org.apache.xmlbeans.samples.any.StringelementDocument) org.apache.xmlbeans.XmlBeans
055: .getContextTypeLoader().newInstance(type, options);
056: }
057:
058: /** @param xmlAsString the string value to parse */
059: public static org.apache.xmlbeans.samples.any.StringelementDocument parse(
060: java.lang.String xmlAsString)
061: throws org.apache.xmlbeans.XmlException {
062: return (org.apache.xmlbeans.samples.any.StringelementDocument) org.apache.xmlbeans.XmlBeans
063: .getContextTypeLoader().parse(xmlAsString, type,
064: null);
065: }
066:
067: public static org.apache.xmlbeans.samples.any.StringelementDocument parse(
068: java.lang.String xmlAsString,
069: org.apache.xmlbeans.XmlOptions options)
070: throws org.apache.xmlbeans.XmlException {
071: return (org.apache.xmlbeans.samples.any.StringelementDocument) org.apache.xmlbeans.XmlBeans
072: .getContextTypeLoader().parse(xmlAsString, type,
073: options);
074: }
075:
076: /** @param file the file from which to load an xml document */
077: public static org.apache.xmlbeans.samples.any.StringelementDocument parse(
078: java.io.File file)
079: throws org.apache.xmlbeans.XmlException,
080: java.io.IOException {
081: return (org.apache.xmlbeans.samples.any.StringelementDocument) org.apache.xmlbeans.XmlBeans
082: .getContextTypeLoader().parse(file, type, null);
083: }
084:
085: public static org.apache.xmlbeans.samples.any.StringelementDocument parse(
086: java.io.File file,
087: org.apache.xmlbeans.XmlOptions options)
088: throws org.apache.xmlbeans.XmlException,
089: java.io.IOException {
090: return (org.apache.xmlbeans.samples.any.StringelementDocument) org.apache.xmlbeans.XmlBeans
091: .getContextTypeLoader().parse(file, type, options);
092: }
093:
094: public static org.apache.xmlbeans.samples.any.StringelementDocument parse(
095: java.net.URL u)
096: throws org.apache.xmlbeans.XmlException,
097: java.io.IOException {
098: return (org.apache.xmlbeans.samples.any.StringelementDocument) org.apache.xmlbeans.XmlBeans
099: .getContextTypeLoader().parse(u, type, null);
100: }
101:
102: public static org.apache.xmlbeans.samples.any.StringelementDocument parse(
103: java.net.URL u, org.apache.xmlbeans.XmlOptions options)
104: throws org.apache.xmlbeans.XmlException,
105: java.io.IOException {
106: return (org.apache.xmlbeans.samples.any.StringelementDocument) org.apache.xmlbeans.XmlBeans
107: .getContextTypeLoader().parse(u, type, options);
108: }
109:
110: public static org.apache.xmlbeans.samples.any.StringelementDocument parse(
111: java.io.InputStream is)
112: throws org.apache.xmlbeans.XmlException,
113: java.io.IOException {
114: return (org.apache.xmlbeans.samples.any.StringelementDocument) org.apache.xmlbeans.XmlBeans
115: .getContextTypeLoader().parse(is, type, null);
116: }
117:
118: public static org.apache.xmlbeans.samples.any.StringelementDocument parse(
119: java.io.InputStream is,
120: org.apache.xmlbeans.XmlOptions options)
121: throws org.apache.xmlbeans.XmlException,
122: java.io.IOException {
123: return (org.apache.xmlbeans.samples.any.StringelementDocument) org.apache.xmlbeans.XmlBeans
124: .getContextTypeLoader().parse(is, type, options);
125: }
126:
127: public static org.apache.xmlbeans.samples.any.StringelementDocument parse(
128: java.io.Reader r)
129: throws org.apache.xmlbeans.XmlException,
130: java.io.IOException {
131: return (org.apache.xmlbeans.samples.any.StringelementDocument) org.apache.xmlbeans.XmlBeans
132: .getContextTypeLoader().parse(r, type, null);
133: }
134:
135: public static org.apache.xmlbeans.samples.any.StringelementDocument parse(
136: java.io.Reader r, org.apache.xmlbeans.XmlOptions options)
137: throws org.apache.xmlbeans.XmlException,
138: java.io.IOException {
139: return (org.apache.xmlbeans.samples.any.StringelementDocument) org.apache.xmlbeans.XmlBeans
140: .getContextTypeLoader().parse(r, type, options);
141: }
142:
143: public static org.apache.xmlbeans.samples.any.StringelementDocument parse(
144: javax.xml.stream.XMLStreamReader sr)
145: throws org.apache.xmlbeans.XmlException {
146: return (org.apache.xmlbeans.samples.any.StringelementDocument) org.apache.xmlbeans.XmlBeans
147: .getContextTypeLoader().parse(sr, type, null);
148: }
149:
150: public static org.apache.xmlbeans.samples.any.StringelementDocument parse(
151: javax.xml.stream.XMLStreamReader sr,
152: org.apache.xmlbeans.XmlOptions options)
153: throws org.apache.xmlbeans.XmlException {
154: return (org.apache.xmlbeans.samples.any.StringelementDocument) org.apache.xmlbeans.XmlBeans
155: .getContextTypeLoader().parse(sr, type, options);
156: }
157:
158: public static org.apache.xmlbeans.samples.any.StringelementDocument parse(
159: org.w3c.dom.Node node)
160: throws org.apache.xmlbeans.XmlException {
161: return (org.apache.xmlbeans.samples.any.StringelementDocument) org.apache.xmlbeans.XmlBeans
162: .getContextTypeLoader().parse(node, type, null);
163: }
164:
165: public static org.apache.xmlbeans.samples.any.StringelementDocument parse(
166: org.w3c.dom.Node node,
167: org.apache.xmlbeans.XmlOptions options)
168: throws org.apache.xmlbeans.XmlException {
169: return (org.apache.xmlbeans.samples.any.StringelementDocument) org.apache.xmlbeans.XmlBeans
170: .getContextTypeLoader().parse(node, type, options);
171: }
172:
173: /** @deprecated {@link XMLInputStream} */
174: public static org.apache.xmlbeans.samples.any.StringelementDocument parse(
175: org.apache.xmlbeans.xml.stream.XMLInputStream xis)
176: throws org.apache.xmlbeans.XmlException,
177: org.apache.xmlbeans.xml.stream.XMLStreamException {
178: return (org.apache.xmlbeans.samples.any.StringelementDocument) org.apache.xmlbeans.XmlBeans
179: .getContextTypeLoader().parse(xis, type, null);
180: }
181:
182: /** @deprecated {@link XMLInputStream} */
183: public static org.apache.xmlbeans.samples.any.StringelementDocument parse(
184: org.apache.xmlbeans.xml.stream.XMLInputStream xis,
185: org.apache.xmlbeans.XmlOptions options)
186: throws org.apache.xmlbeans.XmlException,
187: org.apache.xmlbeans.xml.stream.XMLStreamException {
188: return (org.apache.xmlbeans.samples.any.StringelementDocument) org.apache.xmlbeans.XmlBeans
189: .getContextTypeLoader().parse(xis, type, options);
190: }
191:
192: /** @deprecated {@link XMLInputStream} */
193: public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(
194: org.apache.xmlbeans.xml.stream.XMLInputStream xis)
195: throws org.apache.xmlbeans.XmlException,
196: org.apache.xmlbeans.xml.stream.XMLStreamException {
197: return org.apache.xmlbeans.XmlBeans.getContextTypeLoader()
198: .newValidatingXMLInputStream(xis, type, null);
199: }
200:
201: /** @deprecated {@link XMLInputStream} */
202: public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(
203: org.apache.xmlbeans.xml.stream.XMLInputStream xis,
204: org.apache.xmlbeans.XmlOptions options)
205: throws org.apache.xmlbeans.XmlException,
206: org.apache.xmlbeans.xml.stream.XMLStreamException {
207: return org.apache.xmlbeans.XmlBeans.getContextTypeLoader()
208: .newValidatingXMLInputStream(xis, type, options);
209: }
210:
211: private Factory() {
212: } // No instance of this class allowed
213: }
214: }
|