KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > xml > stream > events > DTD


1 package javax.xml.stream.events;
2
3 import java.util.List JavaDoc;
4
5 /**
6  * This is the top level interface for events dealing with DTDs
7  *
8  * @version 1.0
9  * @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 JavaDoc 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 JavaDoc 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 JavaDoc 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 JavaDoc getEntities();
46 }
47
Popular Tags