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