/src/com/microsoft/schemas/crm/_2007/webservices/AsyncOperationState.java

http://javamscrm.codeplex.com · Java · 163 lines · 88 code · 32 blank · 43 comment · 0 complexity · 71437ee4c44132d1138f26ca1296a1b2 MD5 · raw file

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