View Javadoc

1   /*
2    * XML Type:  ServiceTermStateDefinition
3    * Namespace: http://schemas.ggf.org/graap/2007/03/ws-agreement
4    * Java type: org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition
5    *
6    * Automatically generated - do not modify.
7    */
8   package org.ogf.schemas.graap.wsAgreement;
9   
10  
11  /**
12   * An XML ServiceTermStateDefinition(@http://schemas.ggf.org/graap/2007/03/ws-agreement).
13   *
14   * This is an atomic type that is a restriction of org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition.
15   */
16  public interface ServiceTermStateDefinition extends org.apache.xmlbeans.XmlString
17  {
18      public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
19          org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(ServiceTermStateDefinition.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s1E82E5FFD6D93F7E928DD54BBB6CABD9").resolveHandle("servicetermstatedefinitiona532type");
20      
21      org.apache.xmlbeans.StringEnumAbstractBase enumValue();
22      void set(org.apache.xmlbeans.StringEnumAbstractBase e);
23      
24      static final Enum NOT_READY = Enum.forString("NotReady");
25      static final Enum READY = Enum.forString("Ready");
26      static final Enum COMPLETED = Enum.forString("Completed");
27      
28      static final int INT_NOT_READY = Enum.INT_NOT_READY;
29      static final int INT_READY = Enum.INT_READY;
30      static final int INT_COMPLETED = Enum.INT_COMPLETED;
31      
32      /**
33       * Enumeration value class for org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition.
34       * These enum values can be used as follows:
35       * <pre>
36       * enum.toString(); // returns the string value of the enum
37       * enum.intValue(); // returns an int value, useful for switches
38       * // e.g., case Enum.INT_NOT_READY
39       * Enum.forString(s); // returns the enum value for a string
40       * Enum.forInt(i); // returns the enum value for an int
41       * </pre>
42       * Enumeration objects are immutable singleton objects that
43       * can be compared using == object equality. They have no
44       * public constructor. See the constants defined within this
45       * class for all the valid values.
46       */
47      static final class Enum extends org.apache.xmlbeans.StringEnumAbstractBase
48      {
49          /**
50           * Returns the enum value for a string, or null if none.
51           */
52          public static Enum forString(java.lang.String s)
53              { return (Enum)table.forString(s); }
54          /**
55           * Returns the enum value corresponding to an int, or null if none.
56           */
57          public static Enum forInt(int i)
58              { return (Enum)table.forInt(i); }
59          
60          private Enum(java.lang.String s, int i)
61              { super(s, i); }
62          
63          static final int INT_NOT_READY = 1;
64          static final int INT_READY = 2;
65          static final int INT_COMPLETED = 3;
66          
67          public static final org.apache.xmlbeans.StringEnumAbstractBase.Table table =
68              new org.apache.xmlbeans.StringEnumAbstractBase.Table
69          (
70              new Enum[]
71              {
72                  new Enum("NotReady", INT_NOT_READY),
73                  new Enum("Ready", INT_READY),
74                  new Enum("Completed", INT_COMPLETED),
75              }
76          );
77          private static final long serialVersionUID = 1L;
78          private java.lang.Object readResolve() { return forInt(intValue()); } 
79      }
80      
81      /**
82       * A factory class with static methods for creating instances
83       * of this type.
84       */
85      
86      public static final class Factory
87      {
88          public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition newValue(java.lang.Object obj) {
89            return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) type.newValue( obj ); }
90          
91          public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition newInstance() {
92            return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
93          
94          public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition newInstance(org.apache.xmlbeans.XmlOptions options) {
95            return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
96          
97          /** @param xmlAsString the string value to parse */
98          public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
99            return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
100         
101         public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
102           return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
103         
104         /** @param file the file from which to load an xml document */
105         public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
106           return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
107         
108         public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
109           return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
110         
111         public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
112           return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
113         
114         public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
115           return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
116         
117         public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
118           return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
119         
120         public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
121           return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
122         
123         public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
124           return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
125         
126         public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
127           return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
128         
129         public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
130           return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
131         
132         public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
133           return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
134         
135         public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
136           return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
137         
138         public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
139           return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
140         
141         /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
142         public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
143           return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
144         
145         /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
146         public static org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
147           return (org.ogf.schemas.graap.wsAgreement.ServiceTermStateDefinition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
148         
149         /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
150         public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
151           return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
152         
153         /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
154         public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
155           return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
156         
157         private Factory() { } // No instance of this class allowed
158     }
159 }