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