1. /*
  2. * Copyright (c) 2001 World Wide Web Consortium,
  3. * (Massachusetts Institute of Technology, Institut National de
  4. * Recherche en Informatique et en Automatique, Keio University). All
  5. * Rights Reserved. This program is distributed under the W3C's Software
  6. * Intellectual Property License. This program is distributed in the
  7. * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  8. * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  9. * PURPOSE.
  10. * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  11. */
  12. package com.sun.org.apache.xerces.internal.dom3.as;
  13. /**
  14. * @deprecated
  15. * The datatypes supported by DOM AS implementations. Further datatypes may be
  16. * added in the Schema/PSVI spec.
  17. * <p>See also the <a href='http://www.w3.org/TR/2001/WD-DOM-Level-3-ASLS-20011025'>Document Object Model (DOM) Level 3 Abstract Schemas and Load
  18. and Save Specification</a>.
  19. */
  20. public interface ASDataType {
  21. /**
  22. * One of the enumerated codes representing the data type.
  23. */
  24. public short getDataType();
  25. // DATA_TYPES
  26. /**
  27. * A code representing the string data type as defined in .
  28. */
  29. public static final short STRING_DATATYPE = 1;
  30. /**
  31. * The NOTATION data type as defined in .
  32. */
  33. public static final short NOTATION_DATATYPE = 10;
  34. /**
  35. * The ID data type as defined in .
  36. */
  37. public static final short ID_DATATYPE = 11;
  38. /**
  39. * The IDREF data type as defined in .
  40. */
  41. public static final short IDREF_DATATYPE = 12;
  42. /**
  43. * The IDREFS data type as defined in .
  44. */
  45. public static final short IDREFS_DATATYPE = 13;
  46. /**
  47. * The ENTITY data type as defined in .
  48. */
  49. public static final short ENTITY_DATATYPE = 14;
  50. /**
  51. * The ENTITIES data type as defined in .
  52. */
  53. public static final short ENTITIES_DATATYPE = 15;
  54. /**
  55. * The NMTOKEN data type as defined in .
  56. */
  57. public static final short NMTOKEN_DATATYPE = 16;
  58. /**
  59. * The NMTOKENS data type as defined in .
  60. */
  61. public static final short NMTOKENS_DATATYPE = 17;
  62. /**
  63. * A code representing the boolean data type as defined in .
  64. */
  65. public static final short BOOLEAN_DATATYPE = 100;
  66. /**
  67. * A code representing the float data type as defined in .
  68. */
  69. public static final short FLOAT_DATATYPE = 101;
  70. /**
  71. * A code representing the double data type as defined in .
  72. */
  73. public static final short DOUBLE_DATATYPE = 102;
  74. /**
  75. * The decimal data type as defined in .
  76. */
  77. public static final short DECIMAL_DATATYPE = 103;
  78. /**
  79. * The hexbinary data type as defined in .
  80. */
  81. public static final short HEXBINARY_DATATYPE = 104;
  82. /**
  83. * The base64binary data type as defined in .
  84. */
  85. public static final short BASE64BINARY_DATATYPE = 105;
  86. /**
  87. * Then uri reference data type as defined in .
  88. */
  89. public static final short ANYURI_DATATYPE = 106;
  90. /**
  91. * Then XML qualified name data type as defined in .
  92. */
  93. public static final short QNAME_DATATYPE = 107;
  94. /**
  95. * The duration data type as defined in .
  96. */
  97. public static final short DURATION_DATATYPE = 108;
  98. /**
  99. * The datetime data type as defined in .
  100. */
  101. public static final short DATETIME_DATATYPE = 109;
  102. /**
  103. * The date data type as defined in .
  104. */
  105. public static final short DATE_DATATYPE = 110;
  106. /**
  107. * The time data type as defined in .
  108. */
  109. public static final short TIME_DATATYPE = 111;
  110. /**
  111. * The yearmonth data type as defined in .
  112. */
  113. public static final short GYEARMONTH_DATATYPE = 112;
  114. /**
  115. * The year data type as defined in .
  116. */
  117. public static final short GYEAR_DATATYPE = 113;
  118. /**
  119. * The monthday data type as defined in .
  120. */
  121. public static final short GMONTHDAY_DATATYPE = 114;
  122. /**
  123. * The day data type as defined in .
  124. */
  125. public static final short GDAY_DATATYPE = 115;
  126. /**
  127. * The month data type as defined in .
  128. */
  129. public static final short GMONTH_DATATYPE = 116;
  130. /**
  131. * The integer data type as defined in .
  132. */
  133. public static final short INTEGER = 117;
  134. /**
  135. * A code representing the Name data type as defined in .
  136. */
  137. public static final short NAME_DATATYPE = 200;
  138. /**
  139. * A code representing the NCName data type as defined in .
  140. */
  141. public static final short NCNAME_DATATYPE = 201;
  142. /**
  143. * A code representing the Normalized string data type as defined in .
  144. */
  145. public static final short NORMALIZEDSTRING_DATATYPE = 202;
  146. /**
  147. * The token data type as defined in .
  148. */
  149. public static final short TOKEN_DATATYPE = 203;
  150. /**
  151. * The Language data type as defined in .
  152. */
  153. public static final short LANGUAGE_DATATYPE = 204;
  154. /**
  155. * The Non-positive integer data type as defined in .
  156. */
  157. public static final short NONPOSITIVEINTEGER_DATATYPE = 205;
  158. /**
  159. * Then negative integer data type as defined in .
  160. */
  161. public static final short NEGATIVEINTEGER_DATATYPE = 206;
  162. /**
  163. * Then long data type as defined in .
  164. */
  165. public static final short LONG_DATATYPE = 207;
  166. /**
  167. * The integer data type as defined in .
  168. */
  169. public static final short INT_DATATYPE = 208;
  170. /**
  171. * The short data type as defined in .
  172. */
  173. public static final short SHORT_DATATYPE = 209;
  174. /**
  175. * The byte data type as defined in .
  176. */
  177. public static final short BYTE_DATATYPE = 210;
  178. /**
  179. * The non-negative integer data type as defined in .
  180. */
  181. public static final short NONNEGATIVEINTEGER_DATATYPE = 211;
  182. /**
  183. * The unsigned long data type as defined in .
  184. */
  185. public static final short UNSIGNEDLONG_DATATYPE = 212;
  186. /**
  187. * The unsigned integer data type as defined in .
  188. */
  189. public static final short UNSIGNEDINT_DATATYPE = 213;
  190. /**
  191. * The unsigned short data type as defined in .
  192. */
  193. public static final short UNSIGNEDSHORT_DATATYPE = 214;
  194. /**
  195. * The unsigned byte data type as defined in .
  196. */
  197. public static final short UNSIGNEDBYTE_DATATYPE = 215;
  198. /**
  199. * The positive integer data type as defined in .
  200. */
  201. public static final short POSITIVEINTEGER_DATATYPE = 216;
  202. /**
  203. * The other simple data type as defined in .
  204. */
  205. public static final short OTHER_SIMPLE_DATATYPE = 1000;
  206. /**
  207. * The user-defined complex data type as defined in .
  208. */
  209. public static final short COMPLEX_DATATYPE = 1001;
  210. }