001: /*
002: * XML Type: jmsDestinationStyleType
003: * Namespace: http://cbesb.bostechcorp.com/alert/1.0
004: * Java type: com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType
005: *
006: * Automatically generated - do not modify.
007: */
008: package com.bostechcorp.cbesb.alert.x10;
009:
010: /**
011: * An XML jmsDestinationStyleType(@http://cbesb.bostechcorp.com/alert/1.0).
012: *
013: * This is an atomic type that is a restriction of com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType.
014: */
015: public interface JmsDestinationStyleType extends
016: org.apache.xmlbeans.XmlString {
017: public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType) org.apache.xmlbeans.XmlBeans
018: .typeSystemForClassLoader(
019: JmsDestinationStyleType.class.getClassLoader(),
020: "schemaorg_apache_xmlbeans.system.sF259B946CC6DFC609F8E7F1ECC7FFD8F")
021: .resolveHandle("jmsdestinationstyletype06bbtype");
022:
023: org.apache.xmlbeans.StringEnumAbstractBase enumValue();
024:
025: void set(org.apache.xmlbeans.StringEnumAbstractBase e);
026:
027: static final Enum TOPIC = Enum.forString("topic");
028: static final Enum QUEUE = Enum.forString("queue");
029:
030: static final int INT_TOPIC = Enum.INT_TOPIC;
031: static final int INT_QUEUE = Enum.INT_QUEUE;
032:
033: /**
034: * Enumeration value class for com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType.
035: * These enum values can be used as follows:
036: * <pre>
037: * enum.toString(); // returns the string value of the enum
038: * enum.intValue(); // returns an int value, useful for switches
039: * // e.g., case Enum.INT_TOPIC
040: * Enum.forString(s); // returns the enum value for a string
041: * Enum.forInt(i); // returns the enum value for an int
042: * </pre>
043: * Enumeration objects are immutable singleton objects that
044: * can be compared using == object equality. They have no
045: * public constructor. See the constants defined within this
046: * class for all the valid values.
047: */
048: static final class Enum extends
049: org.apache.xmlbeans.StringEnumAbstractBase {
050: /**
051: * Returns the enum value for a string, or null if none.
052: */
053: public static Enum forString(java.lang.String s) {
054: return (Enum) table.forString(s);
055: }
056:
057: /**
058: * Returns the enum value corresponding to an int, or null if none.
059: */
060: public static Enum forInt(int i) {
061: return (Enum) table.forInt(i);
062: }
063:
064: private Enum(java.lang.String s, int i) {
065: super (s, i);
066: }
067:
068: static final int INT_TOPIC = 1;
069: static final int INT_QUEUE = 2;
070:
071: public static final org.apache.xmlbeans.StringEnumAbstractBase.Table table = new org.apache.xmlbeans.StringEnumAbstractBase.Table(
072: new Enum[] { new Enum("topic", INT_TOPIC),
073: new Enum("queue", INT_QUEUE), });
074: private static final long serialVersionUID = 1L;
075:
076: private java.lang.Object readResolve() {
077: return forInt(intValue());
078: }
079: }
080:
081: /**
082: * A factory class with static methods for creating instances
083: * of this type.
084: */
085:
086: public static final class Factory {
087: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType newValue(
088: java.lang.Object obj) {
089: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) type
090: .newValue(obj);
091: }
092:
093: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType newInstance() {
094: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) org.apache.xmlbeans.XmlBeans
095: .getContextTypeLoader().newInstance(type, null);
096: }
097:
098: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType newInstance(
099: org.apache.xmlbeans.XmlOptions options) {
100: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) org.apache.xmlbeans.XmlBeans
101: .getContextTypeLoader().newInstance(type, options);
102: }
103:
104: /** @param xmlAsString the string value to parse */
105: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType parse(
106: java.lang.String xmlAsString)
107: throws org.apache.xmlbeans.XmlException {
108: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) org.apache.xmlbeans.XmlBeans
109: .getContextTypeLoader().parse(xmlAsString, type,
110: null);
111: }
112:
113: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType parse(
114: java.lang.String xmlAsString,
115: org.apache.xmlbeans.XmlOptions options)
116: throws org.apache.xmlbeans.XmlException {
117: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) org.apache.xmlbeans.XmlBeans
118: .getContextTypeLoader().parse(xmlAsString, type,
119: options);
120: }
121:
122: /** @param file the file from which to load an xml document */
123: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType parse(
124: java.io.File file)
125: throws org.apache.xmlbeans.XmlException,
126: java.io.IOException {
127: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) org.apache.xmlbeans.XmlBeans
128: .getContextTypeLoader().parse(file, type, null);
129: }
130:
131: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType parse(
132: java.io.File file,
133: org.apache.xmlbeans.XmlOptions options)
134: throws org.apache.xmlbeans.XmlException,
135: java.io.IOException {
136: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) org.apache.xmlbeans.XmlBeans
137: .getContextTypeLoader().parse(file, type, options);
138: }
139:
140: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType parse(
141: java.net.URL u)
142: throws org.apache.xmlbeans.XmlException,
143: java.io.IOException {
144: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) org.apache.xmlbeans.XmlBeans
145: .getContextTypeLoader().parse(u, type, null);
146: }
147:
148: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType parse(
149: java.net.URL u, org.apache.xmlbeans.XmlOptions options)
150: throws org.apache.xmlbeans.XmlException,
151: java.io.IOException {
152: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) org.apache.xmlbeans.XmlBeans
153: .getContextTypeLoader().parse(u, type, options);
154: }
155:
156: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType parse(
157: java.io.InputStream is)
158: throws org.apache.xmlbeans.XmlException,
159: java.io.IOException {
160: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) org.apache.xmlbeans.XmlBeans
161: .getContextTypeLoader().parse(is, type, null);
162: }
163:
164: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType parse(
165: java.io.InputStream is,
166: org.apache.xmlbeans.XmlOptions options)
167: throws org.apache.xmlbeans.XmlException,
168: java.io.IOException {
169: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) org.apache.xmlbeans.XmlBeans
170: .getContextTypeLoader().parse(is, type, options);
171: }
172:
173: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType parse(
174: java.io.Reader r)
175: throws org.apache.xmlbeans.XmlException,
176: java.io.IOException {
177: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) org.apache.xmlbeans.XmlBeans
178: .getContextTypeLoader().parse(r, type, null);
179: }
180:
181: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType parse(
182: java.io.Reader r, org.apache.xmlbeans.XmlOptions options)
183: throws org.apache.xmlbeans.XmlException,
184: java.io.IOException {
185: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) org.apache.xmlbeans.XmlBeans
186: .getContextTypeLoader().parse(r, type, options);
187: }
188:
189: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType parse(
190: javax.xml.stream.XMLStreamReader sr)
191: throws org.apache.xmlbeans.XmlException {
192: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) org.apache.xmlbeans.XmlBeans
193: .getContextTypeLoader().parse(sr, type, null);
194: }
195:
196: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType parse(
197: javax.xml.stream.XMLStreamReader sr,
198: org.apache.xmlbeans.XmlOptions options)
199: throws org.apache.xmlbeans.XmlException {
200: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) org.apache.xmlbeans.XmlBeans
201: .getContextTypeLoader().parse(sr, type, options);
202: }
203:
204: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType parse(
205: org.w3c.dom.Node node)
206: throws org.apache.xmlbeans.XmlException {
207: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) org.apache.xmlbeans.XmlBeans
208: .getContextTypeLoader().parse(node, type, null);
209: }
210:
211: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType parse(
212: org.w3c.dom.Node node,
213: org.apache.xmlbeans.XmlOptions options)
214: throws org.apache.xmlbeans.XmlException {
215: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) org.apache.xmlbeans.XmlBeans
216: .getContextTypeLoader().parse(node, type, options);
217: }
218:
219: /** @deprecated {@link XMLInputStream} */
220: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType parse(
221: org.apache.xmlbeans.xml.stream.XMLInputStream xis)
222: throws org.apache.xmlbeans.XmlException,
223: org.apache.xmlbeans.xml.stream.XMLStreamException {
224: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) org.apache.xmlbeans.XmlBeans
225: .getContextTypeLoader().parse(xis, type, null);
226: }
227:
228: /** @deprecated {@link XMLInputStream} */
229: public static com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType parse(
230: org.apache.xmlbeans.xml.stream.XMLInputStream xis,
231: org.apache.xmlbeans.XmlOptions options)
232: throws org.apache.xmlbeans.XmlException,
233: org.apache.xmlbeans.xml.stream.XMLStreamException {
234: return (com.bostechcorp.cbesb.alert.x10.JmsDestinationStyleType) org.apache.xmlbeans.XmlBeans
235: .getContextTypeLoader().parse(xis, type, options);
236: }
237:
238: /** @deprecated {@link XMLInputStream} */
239: public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(
240: org.apache.xmlbeans.xml.stream.XMLInputStream xis)
241: throws org.apache.xmlbeans.XmlException,
242: org.apache.xmlbeans.xml.stream.XMLStreamException {
243: return org.apache.xmlbeans.XmlBeans.getContextTypeLoader()
244: .newValidatingXMLInputStream(xis, type, null);
245: }
246:
247: /** @deprecated {@link XMLInputStream} */
248: public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(
249: org.apache.xmlbeans.xml.stream.XMLInputStream xis,
250: org.apache.xmlbeans.XmlOptions options)
251: throws org.apache.xmlbeans.XmlException,
252: org.apache.xmlbeans.xml.stream.XMLStreamException {
253: return org.apache.xmlbeans.XmlBeans.getContextTypeLoader()
254: .newValidatingXMLInputStream(xis, type, options);
255: }
256:
257: private Factory() {
258: } // No instance of this class allowed
259: }
260: }
|