1. /*
  2. * @(#)DTDConstants.java 1.5 01/11/29
  3. *
  4. * Copyright 2002 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. * @see Attributes
  16. * @version 1.5, 11/29/01
  17. * @author Arthur van Hoff
  18. */
  19. public
  20. interface DTDConstants {
  21. // Attribute value types
  22. int CDATA = 1;
  23. int ENTITY = 2;
  24. int ENTITIES = 3;
  25. int ID = 4;
  26. int IDREF = 5;
  27. int IDREFS = 6;
  28. int NAME = 7;
  29. int NAMES = 8;
  30. int NMTOKEN = 9;
  31. int NMTOKENS = 10;
  32. int NOTATION = 11;
  33. int NUMBER = 12;
  34. int NUMBERS = 13;
  35. int NUTOKEN = 14;
  36. int NUTOKENS = 15;
  37. // Content model types
  38. int RCDATA = 16;
  39. int EMPTY = 17;
  40. int MODEL = 18;
  41. int ANY = 19;
  42. // Attribute value modifiers
  43. int FIXED = 1;
  44. int REQUIRED = 2;
  45. int CURRENT = 3;
  46. int CONREF = 4;
  47. int IMPLIED = 5;
  48. // Entity types
  49. int PUBLIC = 10;
  50. int SDATA = 11;
  51. int PI = 12;
  52. int STARTTAG = 13;
  53. int ENDTAG = 14;
  54. int MS = 15;
  55. int MD = 16;
  56. int SYSTEM = 17;
  57. int GENERAL = 1<<16;
  58. int DEFAULT = 1<<17;
  59. int PARAMETER = 1<<18;
  60. }