Class RestServiceWriter
java.lang.Object
com.xebialabs.commons.html.HtmlWriter
com.xebialabs.gradle.documentation.restdoc.doclet.RestDocWriter
com.xebialabs.gradle.documentation.restdoc.doclet.RestServiceWriter
Writes a documentation page for a single service class.
-
Constructor Summary
ConstructorsConstructorDescriptionRestServiceWriter(PrintWriter writer, TypeElement service, boolean printJsonContentType) Creates a new writer. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAnnotationValue(Element element, String annotationType) voidWrites the entire page.Methods inherited from class com.xebialabs.gradle.documentation.restdoc.doclet.RestDocWriter
asReference, asText, asText, checkAndAppendLink, firstWord, getDeprecatedTags, getDocTree, getEntireComment, getHeadersTags, getParametrizedTypes, getParamTags, getPermissionTags, getRestDetailsTags, getReturnTags, getSeeTags, renderTypeMethods inherited from class com.xebialabs.commons.html.HtmlWriter
anchor, body, bold, br, code, definitionList, div, element, getWriter, h1, h2, h3, h4, head, hr, html, img, italic, link, linkCss, p, row, rowHeader, span, table, td, th, title, tr, wrap, write
-
Constructor Details
-
RestServiceWriter
Creates a new writer. Use a new instance for each page.- Parameters:
writer- the stream to write to.service- the javadoc info of the Rest class to be documented.printJsonContentType-
-
-
Method Details
-
writeRestService
public void writeRestService()Writes the entire page. -
getAnnotationValue
-