com.xebialabs.rest.doclet
Class RestServiceWriter

java.lang.Object
  extended by com.xebialabs.commons.html.HtmlWriter
      extended by com.xebialabs.rest.doclet.RestdocWriter
          extended by com.xebialabs.rest.doclet.RestServiceWriter

public class RestServiceWriter
extends RestdocWriter

Writes a documentation page for a single service class.


Constructor Summary
RestServiceWriter(java.io.PrintWriter writer, com.sun.javadoc.ClassDoc service)
          Creates a new writer.
 
Method Summary
static java.lang.String getAnnotationValue(com.sun.javadoc.ProgramElementDoc element, java.lang.String annotationType)
           
 void writeRestService()
          Writes the entire page.
 
Methods inherited from class com.xebialabs.rest.doclet.RestdocWriter
asReference, asText, asText, firstWord, getParameterizedTypes, renderType, restOfSentence
 
Methods 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestServiceWriter

public RestServiceWriter(java.io.PrintWriter writer,
                         com.sun.javadoc.ClassDoc service)
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.
Method Detail

writeRestService

public void writeRestService()
Writes the entire page.


getAnnotationValue

public static java.lang.String getAnnotationValue(com.sun.javadoc.ProgramElementDoc element,
                                                  java.lang.String annotationType)