public class XmlDocletOutput extends Object implements DocletOutput
DocletOutput.DocVariable| Constructor and Description |
|---|
XmlDocletOutput(OutputStream out,
boolean headOnly,
java.util.function.Function<String,String> clazzToId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endClass()
End output of documentation for the most recently started class.
|
void |
endMember()
End output of the most recently started member.
|
void |
endOutput()
Called at the end of operation.
|
void |
outExamples(String heading,
String[] examples)
Writes one or more example entries.
|
void |
outMemberItem(String name,
String val)
This information is discarded;
the XML output is too terse to include it.
|
void |
outParameters(DocletOutput.DocVariable[] params)
Writes a description of the parameters of a method.
|
void |
outReturn(String type,
String comment)
Writes information about the return value of a method.
|
void |
outSees(String heading,
String[] sees)
Writes one or more See Also entries.
|
void |
startClass(String className,
String firstSentence,
String fullDescription)
Begin output of documentation for a given class.
|
void |
startMember(String memberName,
String memberType,
String memberId,
String description)
Begin output of documentation for a given class member (field or method).
|
void |
startOutput()
Called at the start of operation.
|
public XmlDocletOutput(OutputStream out, boolean headOnly, java.util.function.Function<String,String> clazzToId)
out - destination streamheadOnly - if true, only a short summary of each class
will be writtenclazzToId - maps fully-qualified classname to the
(base) XML ID that will be used for that class
in the XML outputpublic void startOutput()
throws IOException
DocletOutputstartOutput in interface DocletOutputIOExceptionpublic void endOutput()
throws IOException
DocletOutputendOutput in interface DocletOutputIOExceptionpublic void startClass(String className, String firstSentence, String fullDescription) throws IOException
DocletOutputstartClass in interface DocletOutputclassName - fully qualified class namefirstSentence - first sentence of class description, in HTMLfullDescription - full text of class description, in HTMLIOExceptionpublic void endClass()
throws IOException
DocletOutputendClass in interface DocletOutputIOExceptionpublic void startMember(String memberName, String memberType, String memberId, String description) throws IOException
DocletOutputstartMember in interface DocletOutputmemberName - user-readable name of the membermemberType - some user-readable (maybe avoiding technical terms)
description of what kind of member it ismemberId - string uniquely identifying this member within
its parent classdescription - full text of member description, in HTMLIOExceptionpublic void endMember()
throws IOException
DocletOutputendMember in interface DocletOutputIOExceptionpublic void outMemberItem(String name, String val) throws IOException
outMemberItem in interface DocletOutputname - item nameval - item value, may be HTMLIOExceptionpublic void outParameters(DocletOutput.DocVariable[] params) throws IOException
DocletOutputoutParameters in interface DocletOutputparams - parameter listIOExceptionpublic void outReturn(String type, String comment) throws IOException
DocletOutputoutReturn in interface DocletOutputtype - return type specification for presentation to the usercomment - description of returned value, may be HTMLIOExceptionpublic void outExamples(String heading, String[] examples) throws IOException
DocletOutputoutExamples in interface DocletOutputheading - heading for examples sectionexamples - list of example lines, may be HTMLIOExceptionpublic void outSees(String heading, String[] sees) throws IOException
DocletOutputoutSees in interface DocletOutputheading - heading for See Also sectionsees - list of entries, may be HTMLIOExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.