01: /*
02: * Copyright (c) 2001 World Wide Web Consortium,
03: * (Massachusetts Institute of Technology, Institut National de
04: * Recherche en Informatique et en Automatique, Keio University). All
05: * Rights Reserved. This program is distributed under the W3C's Software
06: * Intellectual Property License. This program is distributed in the
07: * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
08: * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
09: * PURPOSE.
10: * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
11: */
12:
13: package org.apache.xerces.dom3.as;
14:
15: /**
16: * @deprecated
17: * Models a general entity declaration in an abstract schema. The abstract
18: * schema does not handle any parameter entity. It is assumed that the
19: * parameter entities are expanded by the implementation as the abstract
20: * schema is built.
21: * <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
22: and Save Specification</a>.
23: */
24: public interface ASEntityDeclaration extends ASObject {
25: // EntityType
26: /**
27: * constant defining an internal entity.
28: */
29: public static final short INTERNAL_ENTITY = 1;
30: /**
31: * constant defining an external entity.
32: */
33: public static final short EXTERNAL_ENTITY = 2;
34:
35: /**
36: * The type of the entity as defined above.
37: */
38: public short getEntityType();
39:
40: /**
41: * The type of the entity as defined above.
42: */
43: public void setEntityType(short entityType);
44:
45: /**
46: * The replacement text for the internal entity. The entity references
47: * within the replacement text are kept intact. For an entity of type
48: * <code>EXTERNAL_ENTITY</code>, this is <code>null</code>.
49: */
50: public String getEntityValue();
51:
52: /**
53: * The replacement text for the internal entity. The entity references
54: * within the replacement text are kept intact. For an entity of type
55: * <code>EXTERNAL_ENTITY</code>, this is <code>null</code>.
56: */
57: public void setEntityValue(String entityValue);
58:
59: /**
60: * the URI reference representing the system identifier for the notation
61: * declaration, if present, <code>null</code> otherwise.
62: */
63: public String getSystemId();
64:
65: /**
66: * the URI reference representing the system identifier for the notation
67: * declaration, if present, <code>null</code> otherwise.
68: */
69: public void setSystemId(String systemId);
70:
71: /**
72: * The string representing the public identifier for this notation
73: * declaration, if present; <code>null</code> otherwise.
74: */
75: public String getPublicId();
76:
77: /**
78: * The string representing the public identifier for this notation
79: * declaration, if present; <code>null</code> otherwise.
80: */
81: public void setPublicId(String publicId);
82:
83: }
|