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. * Models a general entity declaration in an abstract schema. The abstract
  16. * schema does not handle any parameter entity. It is assumed that the
  17. * parameter entities are expanded by the implementation as the abstract
  18. * schema is built.
  19. * <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
  20. and Save Specification</a>.
  21. */
  22. public interface ASEntityDeclaration extends ASObject {
  23. // EntityType
  24. /**
  25. * constant defining an internal entity.
  26. */
  27. public static final short INTERNAL_ENTITY = 1;
  28. /**
  29. * constant defining an external entity.
  30. */
  31. public static final short EXTERNAL_ENTITY = 2;
  32. /**
  33. * The type of the entity as defined above.
  34. */
  35. public short getEntityType();
  36. /**
  37. * The type of the entity as defined above.
  38. */
  39. public void setEntityType(short entityType);
  40. /**
  41. * The replacement text for the internal entity. The entity references
  42. * within the replacement text are kept intact. For an entity of type
  43. * <code>EXTERNAL_ENTITY</code>, this is <code>null</code>.
  44. */
  45. public String getEntityValue();
  46. /**
  47. * The replacement text for the internal entity. The entity references
  48. * within the replacement text are kept intact. For an entity of type
  49. * <code>EXTERNAL_ENTITY</code>, this is <code>null</code>.
  50. */
  51. public void setEntityValue(String entityValue);
  52. /**
  53. * the URI reference representing the system identifier for the notation
  54. * declaration, if present, <code>null</code> otherwise.
  55. */
  56. public String getSystemId();
  57. /**
  58. * the URI reference representing the system identifier for the notation
  59. * declaration, if present, <code>null</code> otherwise.
  60. */
  61. public void setSystemId(String systemId);
  62. /**
  63. * The string representing the public identifier for this notation
  64. * declaration, if present; <code>null</code> otherwise.
  65. */
  66. public String getPublicId();
  67. /**
  68. * The string representing the public identifier for this notation
  69. * declaration, if present; <code>null</code> otherwise.
  70. */
  71. public void setPublicId(String publicId);
  72. }