1 /* |
1 /* |
2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
114 * |
114 * |
115 * @param node the XML element that specifies which components to document |
115 * @param node the XML element that specifies which components to document |
116 * @param contentTree the content tree to which the documentation will be added |
116 * @param contentTree the content tree to which the documentation will be added |
117 */ |
117 */ |
118 public void buildAnnotationTypeDoc(XMLNode node, Content contentTree) throws Exception { |
118 public void buildAnnotationTypeDoc(XMLNode node, Content contentTree) throws Exception { |
119 contentTree = writer.getHeader(configuration.getText("doclet.AnnotationType") + |
119 contentTree = writer.getHeader(configuration.getText("doclet.AnnotationType") + |
120 " " + annotationTypeDoc.name()); |
120 " " + annotationTypeDoc.name()); |
121 Content annotationContentTree = writer.getAnnotationContentHeader(); |
121 Content annotationContentTree = writer.getAnnotationContentHeader(); |
122 buildChildren(node, annotationContentTree); |
122 buildChildren(node, annotationContentTree); |
123 contentTree.addContent(annotationContentTree); |
123 contentTree.addContent(annotationContentTree); |
124 writer.addFooter(contentTree); |
124 writer.addFooter(contentTree); |
125 writer.printDocument(contentTree); |
125 writer.printDocument(contentTree); |
126 writer.close(); |
126 writer.close(); |