1. /*
  2. * @(#)DTDConstants.java 1.7 00/02/02
  3. *
  4. * Copyright 1998-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package javax.swing.text.html.parser;
  11. /**
  12. * SGML constants used in a DTD. The names of the
  13. * constants correspond the the equivalent SGML constructs
  14. * as described in "The SGML Handbook" by Charles F. Goldfarb.
  15. *
  16. * @see DTD
  17. * @see Element
  18. * @version 1.7, 02/02/00
  19. * @author Arthur van Hoff
  20. */
  21. public
  22. interface DTDConstants {
  23. // Attribute value types
  24. int CDATA = 1;
  25. int ENTITY = 2;
  26. int ENTITIES = 3;
  27. int ID = 4;
  28. int IDREF = 5;
  29. int IDREFS = 6;
  30. int NAME = 7;
  31. int NAMES = 8;
  32. int NMTOKEN = 9;
  33. int NMTOKENS = 10;
  34. int NOTATION = 11;
  35. int NUMBER = 12;
  36. int NUMBERS = 13;
  37. int NUTOKEN = 14;
  38. int NUTOKENS = 15;
  39. // Content model types
  40. int RCDATA = 16;
  41. int EMPTY = 17;
  42. int MODEL = 18;
  43. int ANY = 19;
  44. // Attribute value modifiers
  45. int FIXED = 1;
  46. int REQUIRED = 2;
  47. int CURRENT = 3;
  48. int CONREF = 4;
  49. int IMPLIED = 5;
  50. // Entity types
  51. int PUBLIC = 10;
  52. int SDATA = 11;
  53. int PI = 12;
  54. int STARTTAG = 13;
  55. int ENDTAG = 14;
  56. int MS = 15;
  57. int MD = 16;
  58. int SYSTEM = 17;
  59. int GENERAL = 1<<16;
  60. int DEFAULT = 1<<17;
  61. int PARAMETER = 1<<18;
  62. }