001: /*
002: * XML Type: idType
003: * Namespace: http://xmlbeans.apache.org/samples/validation/todolist
004: * Java type: org.apache.xmlbeans.samples.validation.todolist.IdType
005: *
006: * Automatically generated - do not modify.
007: */
008: package org.apache.xmlbeans.samples.validation.todolist;
009:
010: /**
011: * An XML idType(@http://xmlbeans.apache.org/samples/validation/todolist).
012: *
013: * This is an atomic type that is a restriction of org.apache.xmlbeans.XmlInt.
014: */
015: public interface IdType extends org.apache.xmlbeans.XmlInt {
016: public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType) schema.system.s59A663BF38731BA9F8026B121E40FDD3.TypeSystemHolder.typeSystem
017: .resolveHandle("idtypef11btype");
018:
019: /**
020: * A factory class with static methods for creating instances
021: * of this type.
022: */
023:
024: public static final class Factory {
025: public static org.apache.xmlbeans.samples.validation.todolist.IdType newValue(
026: java.lang.Object obj) {
027: return (org.apache.xmlbeans.samples.validation.todolist.IdType) type
028: .newValue(obj);
029: }
030:
031: public static org.apache.xmlbeans.samples.validation.todolist.IdType newInstance() {
032: return (org.apache.xmlbeans.samples.validation.todolist.IdType) org.apache.xmlbeans.XmlBeans
033: .getContextTypeLoader().newInstance(type, null);
034: }
035:
036: public static org.apache.xmlbeans.samples.validation.todolist.IdType newInstance(
037: org.apache.xmlbeans.XmlOptions options) {
038: return (org.apache.xmlbeans.samples.validation.todolist.IdType) org.apache.xmlbeans.XmlBeans
039: .getContextTypeLoader().newInstance(type, options);
040: }
041:
042: /** @param xmlAsString the string value to parse */
043: public static org.apache.xmlbeans.samples.validation.todolist.IdType parse(
044: java.lang.String xmlAsString)
045: throws org.apache.xmlbeans.XmlException {
046: return (org.apache.xmlbeans.samples.validation.todolist.IdType) org.apache.xmlbeans.XmlBeans
047: .getContextTypeLoader().parse(xmlAsString, type,
048: null);
049: }
050:
051: public static org.apache.xmlbeans.samples.validation.todolist.IdType parse(
052: java.lang.String xmlAsString,
053: org.apache.xmlbeans.XmlOptions options)
054: throws org.apache.xmlbeans.XmlException {
055: return (org.apache.xmlbeans.samples.validation.todolist.IdType) org.apache.xmlbeans.XmlBeans
056: .getContextTypeLoader().parse(xmlAsString, type,
057: options);
058: }
059:
060: /** @param file the file from which to load an xml document */
061: public static org.apache.xmlbeans.samples.validation.todolist.IdType parse(
062: java.io.File file)
063: throws org.apache.xmlbeans.XmlException,
064: java.io.IOException {
065: return (org.apache.xmlbeans.samples.validation.todolist.IdType) org.apache.xmlbeans.XmlBeans
066: .getContextTypeLoader().parse(file, type, null);
067: }
068:
069: public static org.apache.xmlbeans.samples.validation.todolist.IdType parse(
070: java.io.File file,
071: org.apache.xmlbeans.XmlOptions options)
072: throws org.apache.xmlbeans.XmlException,
073: java.io.IOException {
074: return (org.apache.xmlbeans.samples.validation.todolist.IdType) org.apache.xmlbeans.XmlBeans
075: .getContextTypeLoader().parse(file, type, options);
076: }
077:
078: public static org.apache.xmlbeans.samples.validation.todolist.IdType parse(
079: java.net.URL u)
080: throws org.apache.xmlbeans.XmlException,
081: java.io.IOException {
082: return (org.apache.xmlbeans.samples.validation.todolist.IdType) org.apache.xmlbeans.XmlBeans
083: .getContextTypeLoader().parse(u, type, null);
084: }
085:
086: public static org.apache.xmlbeans.samples.validation.todolist.IdType parse(
087: java.net.URL u, org.apache.xmlbeans.XmlOptions options)
088: throws org.apache.xmlbeans.XmlException,
089: java.io.IOException {
090: return (org.apache.xmlbeans.samples.validation.todolist.IdType) org.apache.xmlbeans.XmlBeans
091: .getContextTypeLoader().parse(u, type, options);
092: }
093:
094: public static org.apache.xmlbeans.samples.validation.todolist.IdType parse(
095: java.io.InputStream is)
096: throws org.apache.xmlbeans.XmlException,
097: java.io.IOException {
098: return (org.apache.xmlbeans.samples.validation.todolist.IdType) org.apache.xmlbeans.XmlBeans
099: .getContextTypeLoader().parse(is, type, null);
100: }
101:
102: public static org.apache.xmlbeans.samples.validation.todolist.IdType parse(
103: java.io.InputStream is,
104: org.apache.xmlbeans.XmlOptions options)
105: throws org.apache.xmlbeans.XmlException,
106: java.io.IOException {
107: return (org.apache.xmlbeans.samples.validation.todolist.IdType) org.apache.xmlbeans.XmlBeans
108: .getContextTypeLoader().parse(is, type, options);
109: }
110:
111: public static org.apache.xmlbeans.samples.validation.todolist.IdType parse(
112: java.io.Reader r)
113: throws org.apache.xmlbeans.XmlException,
114: java.io.IOException {
115: return (org.apache.xmlbeans.samples.validation.todolist.IdType) org.apache.xmlbeans.XmlBeans
116: .getContextTypeLoader().parse(r, type, null);
117: }
118:
119: public static org.apache.xmlbeans.samples.validation.todolist.IdType parse(
120: java.io.Reader r, org.apache.xmlbeans.XmlOptions options)
121: throws org.apache.xmlbeans.XmlException,
122: java.io.IOException {
123: return (org.apache.xmlbeans.samples.validation.todolist.IdType) org.apache.xmlbeans.XmlBeans
124: .getContextTypeLoader().parse(r, type, options);
125: }
126:
127: public static org.apache.xmlbeans.samples.validation.todolist.IdType parse(
128: javax.xml.stream.XMLStreamReader sr)
129: throws org.apache.xmlbeans.XmlException {
130: return (org.apache.xmlbeans.samples.validation.todolist.IdType) org.apache.xmlbeans.XmlBeans
131: .getContextTypeLoader().parse(sr, type, null);
132: }
133:
134: public static org.apache.xmlbeans.samples.validation.todolist.IdType parse(
135: javax.xml.stream.XMLStreamReader sr,
136: org.apache.xmlbeans.XmlOptions options)
137: throws org.apache.xmlbeans.XmlException {
138: return (org.apache.xmlbeans.samples.validation.todolist.IdType) org.apache.xmlbeans.XmlBeans
139: .getContextTypeLoader().parse(sr, type, options);
140: }
141:
142: public static org.apache.xmlbeans.samples.validation.todolist.IdType parse(
143: org.w3c.dom.Node node)
144: throws org.apache.xmlbeans.XmlException {
145: return (org.apache.xmlbeans.samples.validation.todolist.IdType) org.apache.xmlbeans.XmlBeans
146: .getContextTypeLoader().parse(node, type, null);
147: }
148:
149: public static org.apache.xmlbeans.samples.validation.todolist.IdType parse(
150: org.w3c.dom.Node node,
151: org.apache.xmlbeans.XmlOptions options)
152: throws org.apache.xmlbeans.XmlException {
153: return (org.apache.xmlbeans.samples.validation.todolist.IdType) org.apache.xmlbeans.XmlBeans
154: .getContextTypeLoader().parse(node, type, options);
155: }
156:
157: /** @deprecated {@link XMLInputStream} */
158: public static org.apache.xmlbeans.samples.validation.todolist.IdType parse(
159: org.apache.xmlbeans.xml.stream.XMLInputStream xis)
160: throws org.apache.xmlbeans.XmlException,
161: org.apache.xmlbeans.xml.stream.XMLStreamException {
162: return (org.apache.xmlbeans.samples.validation.todolist.IdType) org.apache.xmlbeans.XmlBeans
163: .getContextTypeLoader().parse(xis, type, null);
164: }
165:
166: /** @deprecated {@link XMLInputStream} */
167: public static org.apache.xmlbeans.samples.validation.todolist.IdType parse(
168: org.apache.xmlbeans.xml.stream.XMLInputStream xis,
169: org.apache.xmlbeans.XmlOptions options)
170: throws org.apache.xmlbeans.XmlException,
171: org.apache.xmlbeans.xml.stream.XMLStreamException {
172: return (org.apache.xmlbeans.samples.validation.todolist.IdType) org.apache.xmlbeans.XmlBeans
173: .getContextTypeLoader().parse(xis, type, options);
174: }
175:
176: /** @deprecated {@link XMLInputStream} */
177: public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(
178: org.apache.xmlbeans.xml.stream.XMLInputStream xis)
179: throws org.apache.xmlbeans.XmlException,
180: org.apache.xmlbeans.xml.stream.XMLStreamException {
181: return org.apache.xmlbeans.XmlBeans.getContextTypeLoader()
182: .newValidatingXMLInputStream(xis, type, null);
183: }
184:
185: /** @deprecated {@link XMLInputStream} */
186: public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(
187: org.apache.xmlbeans.xml.stream.XMLInputStream xis,
188: org.apache.xmlbeans.XmlOptions options)
189: throws org.apache.xmlbeans.XmlException,
190: org.apache.xmlbeans.xml.stream.XMLStreamException {
191: return org.apache.xmlbeans.XmlBeans.getContextTypeLoader()
192: .newValidatingXMLInputStream(xis, type, options);
193: }
194:
195: private Factory() {
196: } // No instance of this class allowed
197: }
198: }
|