You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

javadoc-v04draft.dtd 7.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <!-- ===================================================================
  2. Apache JavaDoc DTD (version 0.4-draft)
  3. PURPOSE:
  4. This DTD is designed to capture the output of JavaDoc as an XML document
  5. through the use of the JavaDocXML Doclet. The hope is that by having the
  6. JavaDoc documentation in an XML format, it will be easier for application
  7. developers working with XML to treat their java source documentation in the
  8. same way they treat any other XML document within their publication framework.
  9. This DTD should reflect the information contained within the RootDoc object
  10. passed to the JavaDocXML Doclet by JavaDoc. The RootDoc object and the rest
  11. of the javaDoc Doclet API is specified at
  12. http://java.sun.com/products/jdk/1.2/docs/tooldocs/javadoc/doclet/index.html
  13. The only information that appears to be difficult to derive from this DTD
  14. that is easy to obtain from the RootDoc object is the information about
  15. serialization. However, this information should be derivable by manually
  16. looking for the correct serialization methods and other related structures.
  17. TYPICAL INVOCATION:
  18. <!DOCTYPE document PUBLIC
  19. "-//APACHE//DTD JavaDoc Vx.yz//EN"
  20. "http://xml.apache.org/DTD/javadoc-vxyz.dtd">
  21. where
  22. x := major version
  23. y := minor version
  24. z := status identifier (optional)
  25. NOTES:
  26. The authors would like to thank the Cocoon's mail list subscribers for
  27. providing such great support and feedback for this DTD.
  28. AUTHORS:
  29. Kenneth Murphy <murphyk@umsystem.edu>
  30. FIXME:
  31. CHANGE HISTORY:
  32. 199909?? Original idea of XML doclet. (KM)
  33. 199910?? Initial version of this DTD. (KM)
  34. 19991129 Cleaned up DTD. (SM)
  35. COPYRIGHT:
  36. Copyright (c) @year@ The Apache Software Foundation.
  37. Permission to copy in any form is granted provided this notice is
  38. included in all copies. Permission to redistribute is granted
  39. provided this file is distributed untouched in all its parts and
  40. included files.
  41. ==================================================================== -->
  42. <!-- =============================================================== -->
  43. <!-- Common Attribute Entities -->
  44. <!-- =============================================================== -->
  45. <!ENTITY % name 'name CDATA #REQUIRED'>
  46. <!ENTITY % dimension 'dimension CDATA #REQUIRED'>
  47. <!ENTITY % abstract 'abstract (true | false) "false"'>
  48. <!ENTITY % anonymous 'anonymous (true | false) "false"'>
  49. <!ENTITY % synthetic 'synthetic (true | false) "false"'>
  50. <!ENTITY % static 'static (true | false) "false"'>
  51. <!ENTITY % final 'final (true | false) "false"'>
  52. <!ENTITY % transient 'transient (true | false) "false"'>
  53. <!ENTITY % volatile 'volatile (true | false) "false"'>
  54. <!ENTITY % native 'native (true | false) "false"'>
  55. <!ENTITY % synchronized 'synchronized (true | false) "false"'>
  56. <!ENTITY % access 'access (private | package | protected | public) "package"'>
  57. <!ENTITY % class.access 'access (package | public) "package"'>
  58. <!ENTITY % extensibility 'extensibility (abstract | final | default) "default"'>
  59. <!-- =============================================================== -->
  60. <!-- Javadoc -->
  61. <!-- =============================================================== -->
  62. <!ELEMENT javadoc (package*, class*, interface*)>
  63. <!-- =============================================================== -->
  64. <!-- Package -->
  65. <!-- =============================================================== -->
  66. <!ELEMENT package (doc?, package*, class*, interface*)>
  67. <!ATTLIST package %name;>
  68. <!-- =============================================================== -->
  69. <!-- Class -->
  70. <!-- =============================================================== -->
  71. <!ELEMENT class (doc?,
  72. extends_class?,
  73. implements?,
  74. field*,
  75. constructor*,
  76. method*,
  77. innerclass*)>
  78. <!ATTLIST class
  79. %name;
  80. %extensibility;
  81. %class.access;>
  82. <!ELEMENT extends_class (classref+)>
  83. <!ELEMENT innerclass (doc?,
  84. extends?,
  85. implements?,
  86. field*,
  87. constructor*,
  88. method*)>
  89. <!ATTLIST innerclass
  90. %name;
  91. %access;
  92. %abstract;
  93. %anonymous;
  94. %final;
  95. %static;>
  96. <!-- =============================================================== -->
  97. <!-- Interface -->
  98. <!-- =============================================================== -->
  99. <!ELEMENT interface (doc?,
  100. extends_interface?,
  101. field*,
  102. method*)>
  103. <!ATTLIST interface
  104. %name;
  105. %access;>
  106. <!ELEMENT extends_interface (interfaceref+)>
  107. <!-- =============================================================== -->
  108. <!-- Elements -->
  109. <!-- =============================================================== -->
  110. <!ELEMENT implements (interfaceref+)>
  111. <!ELEMENT throws (classref)+>
  112. <!ELEMENT classref EMPTY>
  113. <!ATTLIST classref %name;>
  114. <!ELEMENT interfaceref EMPTY>
  115. <!ATTLIST interfaceref %name;>
  116. <!ELEMENT methodref EMPTY>
  117. <!ATTLIST methodref %name;>
  118. <!ELEMENT packageref EMPTY>
  119. <!ATTLIST packageref %name;>
  120. <!ELEMENT primitive EMPTY>
  121. <!ATTLIST primitive
  122. type (void | boolean | int | long | byte | short | double | float | char) #REQUIRED>
  123. <!ELEMENT field (doc?, (classref | interfaceref | primitive))>
  124. <!ATTLIST field
  125. %name;
  126. %access;
  127. %dimension;
  128. %synthetic;
  129. %static;
  130. %final;
  131. %transient;
  132. %volatile;>
  133. <!ELEMENT constructor (doc?, parameter*, throws*)>
  134. <!ATTLIST constructor
  135. %name;
  136. %access;
  137. %synthetic;>
  138. <!ELEMENT method (doc?, returns, parameter*, throws*)>
  139. <!ATTLIST method
  140. %name;
  141. %access;
  142. %extensibility;
  143. %native;
  144. %synthetic;
  145. %static;
  146. %synchronized;>
  147. <!ELEMENT returns (classref | interfaceref | primitive)>
  148. <!ATTLIST returns %dimension;>
  149. <!ELEMENT parameter (classref | interfaceref | primitive)>
  150. <!ATTLIST parameter
  151. %name;
  152. %final;
  153. %dimension;>
  154. <!ELEMENT dimension (#PCDATA)>
  155. <!ELEMENT doc (#PCDATA |
  156. linktag |
  157. authortag |
  158. versiontag |
  159. paramtag |
  160. returntag |
  161. exceptiontag |
  162. throwstag |
  163. seetag |
  164. sincetag |
  165. deprecatedtag |
  166. serialtag |
  167. serialfieldtag |
  168. serialdatatag)*>
  169. <!ELEMENT linktag (#PCDATA)>
  170. <!ATTLIST linktag
  171. src CDATA #REQUIRED>
  172. <!ELEMENT authortag (#PCDATA | linktag)*>
  173. <!ELEMENT versiontag (#PCDATA | linktag)*>
  174. <!ELEMENT paramtag (#PCDATA | linktag)*>
  175. <!ATTLIST paramtag %name;>
  176. <!ELEMENT returntag (#PCDATA | linktag)*>
  177. <!ELEMENT exceptiontag (#PCDATA | classref | linktag)*>
  178. <!ELEMENT throwstag (#PCDATA | classref | linktag)*>
  179. <!ELEMENT seetag (#PCDATA | linktag)*>
  180. <!ATTLIST seetag
  181. src CDATA #REQUIRED>
  182. <!ELEMENT sincetag (#PCDATA | linktag)*>
  183. <!ELEMENT deprecatedtag (#PCDATA | linktag)*>
  184. <!ELEMENT serialtag (#PCDATA | linktag)*>
  185. <!ELEMENT serialfieldtag (#PCDATA | linktag)*>
  186. <!ATTLIST serialfieldtag
  187. fieldname CDATA #REQUIRED
  188. fieldtype CDATA #REQUIRED>
  189. <!ELEMENT serialdatatag (#PCDATA | linktag)*>
  190. <!-- =============================================================== -->
  191. <!-- End of DTD -->
  192. <!-- =============================================================== -->