44 */ |
44 */ |
45 public class SerializedFormWriterImpl extends SubWriterHolderWriter |
45 public class SerializedFormWriterImpl extends SubWriterHolderWriter |
46 implements SerializedFormWriter { |
46 implements SerializedFormWriter { |
47 |
47 |
48 /** |
48 /** |
|
49 * @param configuration the configuration data for the doclet |
49 * @throws IOException |
50 * @throws IOException |
50 * @throws DocletAbortException |
51 * @throws DocletAbortException |
51 */ |
52 */ |
52 public SerializedFormWriterImpl() throws IOException { |
53 public SerializedFormWriterImpl(ConfigurationImpl configuration) |
53 super(ConfigurationImpl.getInstance(), DocPaths.SERIALIZED_FORM); |
54 throws IOException { |
|
55 super(configuration, DocPaths.SERIALIZED_FORM); |
54 } |
56 } |
55 |
57 |
56 /** |
58 /** |
57 * Get the given header. |
59 * Get the given header. |
58 * |
60 * |
124 * @param classDoc the class being processed |
126 * @param classDoc the class being processed |
125 * @return a content tree for the class header |
127 * @return a content tree for the class header |
126 */ |
128 */ |
127 public Content getClassHeader(ClassDoc classDoc) { |
129 public Content getClassHeader(ClassDoc classDoc) { |
128 String classLink = (classDoc.isPublic() || classDoc.isProtected())? |
130 String classLink = (classDoc.isPublic() || classDoc.isProtected())? |
129 getLink(new LinkInfoImpl(classDoc, |
131 getLink(new LinkInfoImpl(configuration, classDoc, |
130 configuration.getClassName(classDoc))): |
132 configuration.getClassName(classDoc))): |
131 classDoc.qualifiedName(); |
133 classDoc.qualifiedName(); |
132 Content li = HtmlTree.LI(HtmlStyle.blockList, getMarkerAnchor( |
134 Content li = HtmlTree.LI(HtmlStyle.blockList, getMarkerAnchor( |
133 classDoc.qualifiedName())); |
135 classDoc.qualifiedName())); |
134 String superClassLink = |
136 String superClassLink = |
135 classDoc.superclassType() != null ? |
137 classDoc.superclassType() != null ? |
136 getLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_SERIALIZED_FORM, |
138 getLink(new LinkInfoImpl(configuration, |
137 classDoc.superclassType())) : |
139 LinkInfoImpl.CONTEXT_SERIALIZED_FORM, |
|
140 classDoc.superclassType())) : |
138 null; |
141 null; |
139 |
142 |
140 //Print the heading. |
143 //Print the heading. |
141 String className = superClassLink == null ? |
144 String className = superClassLink == null ? |
142 configuration.getText( |
145 configuration.getText( |