01 package javax.xml.stream.events;
02
03 import java.util.List;
04
05 /**
06 * This is the top level interface for events dealing with DTDs
07 *
08 * @version 1.0
09 * @author Copyright (c) 2003 by BEA Systems. All Rights Reserved.
10 * @since 1.6
11 */
12 public interface DTD extends XMLEvent {
13
14 /**
15 * Returns the entire Document Type Declaration as a string, including
16 * the internal DTD subset.
17 * This may be null if there is not an internal subset.
18 * If it is not null it must return the entire
19 * Document Type Declaration which matches the doctypedecl
20 * production in the XML 1.0 specification
21 */
22 String getDocumentTypeDeclaration();
23
24 /**
25 * Returns an implementation defined representation of the DTD.
26 * This method may return null if no representation is available.
27 */
28 Object getProcessedDTD();
29
30 /**
31 * Return a List containing the notations declared in the DTD.
32 * This list must contain NotationDeclaration events.
33 * @see NotationDeclaration
34 * @return an unordered list of NotationDeclaration events
35 */
36 List getNotations();
37
38 /**
39 * Return a List containing the general entities,
40 * both external and internal, declared in the DTD.
41 * This list must contain EntityDeclaration events.
42 * @see EntityDeclaration
43 * @return an unordered list of EntityDeclaration events
44 */
45 List getEntities();
46 }
|