01: package com.jclark.xml.parse;
02:
03: import java.net.URL;
04:
05: /**
06: * Information about an entity or notation.
07: *
08: * @see DTD#getEntity
09: * @version $Revision: 1.1 $ $Date: 1998/06/25 04:41:53 $
10: */
11:
12: public interface Entity {
13: /**
14: * Returns the system identifier, or null if no system identifier
15: * was specified.
16: * A relative URL is not automatically resolved into an absolute URL;
17: * <code>getBase</code> can be used to do this.
18: *
19: * @see #getBase
20: */
21: String getSystemId();
22:
23: /**
24: * Returns the URL that should be used for resolving the system identifier
25: * if the system identifier is relative.
26: * Returns null if no URL is available.
27: */
28: URL getBase();
29:
30: /**
31: * Returns the public identifier, or null if no public identifier
32: * was specified.
33: */
34: String getPublicId();
35:
36: /**
37: * Returns the replacement text or null if this is not an internal
38: * entity.
39: */
40: String getReplacementText();
41:
42: /**
43: * Returns the notation name of the entity, of null if this is
44: * not an unparsed entity.
45: */
46: String getNotationName();
47: }
|