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