001: /*
002: * XML Type: ElementReferenceType
003: * Namespace: http://www.w3.org/ns/wsdl
004: * Java type: org.w3.ns.wsdl.ElementReferenceType
005: *
006: * Automatically generated - do not modify.
007: */
008: package org.w3.ns.wsdl;
009:
010: /**
011: * An XML ElementReferenceType(@http://www.w3.org/ns/wsdl).
012: *
013: * This is a union type. Instances are of one of the following types:
014: * org.apache.xmlbeans.XmlQName
015: * org.w3.ns.wsdl.ElementReferenceType$Member
016: */
017: public interface ElementReferenceType extends
018: org.apache.xmlbeans.XmlAnySimpleType {
019: java.lang.Object getObjectValue();
020:
021: void setObjectValue(java.lang.Object val);
022:
023: /** @deprecated */
024: java.lang.Object objectValue();
025:
026: /** @deprecated */
027: void objectSet(java.lang.Object val);
028:
029: org.apache.xmlbeans.SchemaType instanceType();
030:
031: public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType) org.apache.xmlbeans.XmlBeans
032: .typeSystemForClassLoader(
033: ElementReferenceType.class.getClassLoader(),
034: "schemaorg_apache_xmlbeans.system.s2EAECD9BB08C57F25B7B261051DD8E7E")
035: .resolveHandle("elementreferencetype758ctype");
036:
037: /**
038: * An anonymous inner XML type.
039: *
040: * This is an atomic type that is a restriction of org.w3.ns.wsdl.ElementReferenceType$Member.
041: */
042: public interface Member extends org.apache.xmlbeans.XmlToken {
043: public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType) org.apache.xmlbeans.XmlBeans
044: .typeSystemForClassLoader(
045: Member.class.getClassLoader(),
046: "schemaorg_apache_xmlbeans.system.s2EAECD9BB08C57F25B7B261051DD8E7E")
047: .resolveHandle("anon5f87type");
048:
049: org.apache.xmlbeans.StringEnumAbstractBase enumValue();
050:
051: void set(org.apache.xmlbeans.StringEnumAbstractBase e);
052:
053: static final Enum ANY = Enum.forString("#any");
054: static final Enum NONE = Enum.forString("#none");
055: static final Enum OTHER = Enum.forString("#other");
056:
057: static final int INT_ANY = Enum.INT_ANY;
058: static final int INT_NONE = Enum.INT_NONE;
059: static final int INT_OTHER = Enum.INT_OTHER;
060:
061: /**
062: * Enumeration value class for org.w3.ns.wsdl.ElementReferenceType$Member.
063: * These enum values can be used as follows:
064: * <pre>
065: * enum.toString(); // returns the string value of the enum
066: * enum.intValue(); // returns an int value, useful for switches
067: * // e.g., case Enum.INT_ANY
068: * Enum.forString(s); // returns the enum value for a string
069: * Enum.forInt(i); // returns the enum value for an int
070: * </pre>
071: * Enumeration objects are immutable singleton objects that
072: * can be compared using == object equality. They have no
073: * public constructor. See the constants defined within this
074: * class for all the valid values.
075: */
076: static final class Enum extends
077: org.apache.xmlbeans.StringEnumAbstractBase {
078: /**
079: * Returns the enum value for a string, or null if none.
080: */
081: public static Enum forString(java.lang.String s) {
082: return (Enum) table.forString(s);
083: }
084:
085: /**
086: * Returns the enum value corresponding to an int, or null if none.
087: */
088: public static Enum forInt(int i) {
089: return (Enum) table.forInt(i);
090: }
091:
092: private Enum(java.lang.String s, int i) {
093: super (s, i);
094: }
095:
096: static final int INT_ANY = 1;
097: static final int INT_NONE = 2;
098: static final int INT_OTHER = 3;
099:
100: public static final org.apache.xmlbeans.StringEnumAbstractBase.Table table = new org.apache.xmlbeans.StringEnumAbstractBase.Table(
101: new Enum[] { new Enum("#any", INT_ANY),
102: new Enum("#none", INT_NONE),
103: new Enum("#other", INT_OTHER), });
104: private static final long serialVersionUID = 1L;
105:
106: private java.lang.Object readResolve() {
107: return forInt(intValue());
108: }
109: }
110:
111: /**
112: * A factory class with static methods for creating instances
113: * of this type.
114: */
115:
116: public static final class Factory {
117: public static org.w3.ns.wsdl.ElementReferenceType.Member newValue(
118: java.lang.Object obj) {
119: return (org.w3.ns.wsdl.ElementReferenceType.Member) type
120: .newValue(obj);
121: }
122:
123: public static org.w3.ns.wsdl.ElementReferenceType.Member newInstance() {
124: return (org.w3.ns.wsdl.ElementReferenceType.Member) org.apache.xmlbeans.XmlBeans
125: .getContextTypeLoader().newInstance(type, null);
126: }
127:
128: public static org.w3.ns.wsdl.ElementReferenceType.Member newInstance(
129: org.apache.xmlbeans.XmlOptions options) {
130: return (org.w3.ns.wsdl.ElementReferenceType.Member) org.apache.xmlbeans.XmlBeans
131: .getContextTypeLoader().newInstance(type,
132: options);
133: }
134:
135: private Factory() {
136: } // No instance of this class allowed
137: }
138: }
139:
140: /**
141: * A factory class with static methods for creating instances
142: * of this type.
143: */
144:
145: public static final class Factory {
146: public static org.w3.ns.wsdl.ElementReferenceType newValue(
147: java.lang.Object obj) {
148: return (org.w3.ns.wsdl.ElementReferenceType) type
149: .newValue(obj);
150: }
151:
152: public static org.w3.ns.wsdl.ElementReferenceType newInstance() {
153: return (org.w3.ns.wsdl.ElementReferenceType) org.apache.xmlbeans.XmlBeans
154: .getContextTypeLoader().newInstance(type, null);
155: }
156:
157: public static org.w3.ns.wsdl.ElementReferenceType newInstance(
158: org.apache.xmlbeans.XmlOptions options) {
159: return (org.w3.ns.wsdl.ElementReferenceType) org.apache.xmlbeans.XmlBeans
160: .getContextTypeLoader().newInstance(type, options);
161: }
162:
163: /** @param xmlAsString the string value to parse */
164: public static org.w3.ns.wsdl.ElementReferenceType parse(
165: java.lang.String xmlAsString)
166: throws org.apache.xmlbeans.XmlException {
167: return (org.w3.ns.wsdl.ElementReferenceType) org.apache.xmlbeans.XmlBeans
168: .getContextTypeLoader().parse(xmlAsString, type,
169: null);
170: }
171:
172: public static org.w3.ns.wsdl.ElementReferenceType parse(
173: java.lang.String xmlAsString,
174: org.apache.xmlbeans.XmlOptions options)
175: throws org.apache.xmlbeans.XmlException {
176: return (org.w3.ns.wsdl.ElementReferenceType) org.apache.xmlbeans.XmlBeans
177: .getContextTypeLoader().parse(xmlAsString, type,
178: options);
179: }
180:
181: /** @param file the file from which to load an xml document */
182: public static org.w3.ns.wsdl.ElementReferenceType parse(
183: java.io.File file)
184: throws org.apache.xmlbeans.XmlException,
185: java.io.IOException {
186: return (org.w3.ns.wsdl.ElementReferenceType) org.apache.xmlbeans.XmlBeans
187: .getContextTypeLoader().parse(file, type, null);
188: }
189:
190: public static org.w3.ns.wsdl.ElementReferenceType parse(
191: java.io.File file,
192: org.apache.xmlbeans.XmlOptions options)
193: throws org.apache.xmlbeans.XmlException,
194: java.io.IOException {
195: return (org.w3.ns.wsdl.ElementReferenceType) org.apache.xmlbeans.XmlBeans
196: .getContextTypeLoader().parse(file, type, options);
197: }
198:
199: public static org.w3.ns.wsdl.ElementReferenceType parse(
200: java.net.URL u)
201: throws org.apache.xmlbeans.XmlException,
202: java.io.IOException {
203: return (org.w3.ns.wsdl.ElementReferenceType) org.apache.xmlbeans.XmlBeans
204: .getContextTypeLoader().parse(u, type, null);
205: }
206:
207: public static org.w3.ns.wsdl.ElementReferenceType parse(
208: java.net.URL u, org.apache.xmlbeans.XmlOptions options)
209: throws org.apache.xmlbeans.XmlException,
210: java.io.IOException {
211: return (org.w3.ns.wsdl.ElementReferenceType) org.apache.xmlbeans.XmlBeans
212: .getContextTypeLoader().parse(u, type, options);
213: }
214:
215: public static org.w3.ns.wsdl.ElementReferenceType parse(
216: java.io.InputStream is)
217: throws org.apache.xmlbeans.XmlException,
218: java.io.IOException {
219: return (org.w3.ns.wsdl.ElementReferenceType) org.apache.xmlbeans.XmlBeans
220: .getContextTypeLoader().parse(is, type, null);
221: }
222:
223: public static org.w3.ns.wsdl.ElementReferenceType parse(
224: java.io.InputStream is,
225: org.apache.xmlbeans.XmlOptions options)
226: throws org.apache.xmlbeans.XmlException,
227: java.io.IOException {
228: return (org.w3.ns.wsdl.ElementReferenceType) org.apache.xmlbeans.XmlBeans
229: .getContextTypeLoader().parse(is, type, options);
230: }
231:
232: public static org.w3.ns.wsdl.ElementReferenceType parse(
233: java.io.Reader r)
234: throws org.apache.xmlbeans.XmlException,
235: java.io.IOException {
236: return (org.w3.ns.wsdl.ElementReferenceType) org.apache.xmlbeans.XmlBeans
237: .getContextTypeLoader().parse(r, type, null);
238: }
239:
240: public static org.w3.ns.wsdl.ElementReferenceType parse(
241: java.io.Reader r, org.apache.xmlbeans.XmlOptions options)
242: throws org.apache.xmlbeans.XmlException,
243: java.io.IOException {
244: return (org.w3.ns.wsdl.ElementReferenceType) org.apache.xmlbeans.XmlBeans
245: .getContextTypeLoader().parse(r, type, options);
246: }
247:
248: public static org.w3.ns.wsdl.ElementReferenceType parse(
249: javax.xml.stream.XMLStreamReader sr)
250: throws org.apache.xmlbeans.XmlException {
251: return (org.w3.ns.wsdl.ElementReferenceType) org.apache.xmlbeans.XmlBeans
252: .getContextTypeLoader().parse(sr, type, null);
253: }
254:
255: public static org.w3.ns.wsdl.ElementReferenceType parse(
256: javax.xml.stream.XMLStreamReader sr,
257: org.apache.xmlbeans.XmlOptions options)
258: throws org.apache.xmlbeans.XmlException {
259: return (org.w3.ns.wsdl.ElementReferenceType) org.apache.xmlbeans.XmlBeans
260: .getContextTypeLoader().parse(sr, type, options);
261: }
262:
263: public static org.w3.ns.wsdl.ElementReferenceType parse(
264: org.w3c.dom.Node node)
265: throws org.apache.xmlbeans.XmlException {
266: return (org.w3.ns.wsdl.ElementReferenceType) org.apache.xmlbeans.XmlBeans
267: .getContextTypeLoader().parse(node, type, null);
268: }
269:
270: public static org.w3.ns.wsdl.ElementReferenceType parse(
271: org.w3c.dom.Node node,
272: org.apache.xmlbeans.XmlOptions options)
273: throws org.apache.xmlbeans.XmlException {
274: return (org.w3.ns.wsdl.ElementReferenceType) org.apache.xmlbeans.XmlBeans
275: .getContextTypeLoader().parse(node, type, options);
276: }
277:
278: /** @deprecated {@link XMLInputStream} */
279: public static org.w3.ns.wsdl.ElementReferenceType parse(
280: org.apache.xmlbeans.xml.stream.XMLInputStream xis)
281: throws org.apache.xmlbeans.XmlException,
282: org.apache.xmlbeans.xml.stream.XMLStreamException {
283: return (org.w3.ns.wsdl.ElementReferenceType) org.apache.xmlbeans.XmlBeans
284: .getContextTypeLoader().parse(xis, type, null);
285: }
286:
287: /** @deprecated {@link XMLInputStream} */
288: public static org.w3.ns.wsdl.ElementReferenceType parse(
289: org.apache.xmlbeans.xml.stream.XMLInputStream xis,
290: org.apache.xmlbeans.XmlOptions options)
291: throws org.apache.xmlbeans.XmlException,
292: org.apache.xmlbeans.xml.stream.XMLStreamException {
293: return (org.w3.ns.wsdl.ElementReferenceType) org.apache.xmlbeans.XmlBeans
294: .getContextTypeLoader().parse(xis, type, options);
295: }
296:
297: /** @deprecated {@link XMLInputStream} */
298: public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(
299: org.apache.xmlbeans.xml.stream.XMLInputStream xis)
300: throws org.apache.xmlbeans.XmlException,
301: org.apache.xmlbeans.xml.stream.XMLStreamException {
302: return org.apache.xmlbeans.XmlBeans.getContextTypeLoader()
303: .newValidatingXMLInputStream(xis, type, null);
304: }
305:
306: /** @deprecated {@link XMLInputStream} */
307: public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(
308: org.apache.xmlbeans.xml.stream.XMLInputStream xis,
309: org.apache.xmlbeans.XmlOptions options)
310: throws org.apache.xmlbeans.XmlException,
311: org.apache.xmlbeans.xml.stream.XMLStreamException {
312: return org.apache.xmlbeans.XmlBeans.getContextTypeLoader()
313: .newValidatingXMLInputStream(xis, type, options);
314: }
315:
316: private Factory() {
317: } // No instance of this class allowed
318: }
319: }
|