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