com.xebialabs.rest.doclet
Class RestdocWriter

java.lang.Object
  extended by com.xebialabs.commons.html.HtmlWriter
      extended by com.xebialabs.rest.doclet.RestdocWriter
Direct Known Subclasses:
OverviewWriter, RestServiceWriter

public class RestdocWriter
extends com.xebialabs.commons.html.HtmlWriter

HtmlWriter with convenience methods for writing REST documentation.


Constructor Summary
RestdocWriter(java.io.PrintWriter writer)
           
 
Method Summary
protected  java.lang.String asReference(com.sun.javadoc.Type type)
           
protected  java.lang.String asText(com.sun.javadoc.Tag[] tags)
           
protected  java.lang.String asText(com.sun.javadoc.Type type)
           
static java.lang.String firstWord(com.sun.javadoc.Tag tag)
           
 java.util.List<com.sun.javadoc.Type> getParameterizedTypes(com.sun.javadoc.Type type)
           
protected  java.lang.Object renderType(com.sun.javadoc.Type type)
           
static java.lang.String restOfSentence(com.sun.javadoc.Tag tag)
           
 
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

RestdocWriter

public RestdocWriter(java.io.PrintWriter writer)
Method Detail

asText

protected java.lang.String asText(com.sun.javadoc.Tag[] tags)

asText

protected java.lang.String asText(com.sun.javadoc.Type type)

firstWord

public static java.lang.String firstWord(com.sun.javadoc.Tag tag)

restOfSentence

public static java.lang.String restOfSentence(com.sun.javadoc.Tag tag)

asReference

protected java.lang.String asReference(com.sun.javadoc.Type type)

getParameterizedTypes

public java.util.List<com.sun.javadoc.Type> getParameterizedTypes(com.sun.javadoc.Type type)

renderType

protected java.lang.Object renderType(com.sun.javadoc.Type type)