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