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