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