|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvnet.ws.wadl2java.JavaDocUtil
public class JavaDocUtil
Utility class containing methods for generating JavaDoc from XML documentation embedded in WADL files.
| Constructor Summary | |
|---|---|
JavaDocUtil()
Create a new JavaDocUtil instance |
|
| Method Summary | |
|---|---|
protected void |
appendTextContent(Doc d,
com.sun.codemodel.JCommentPart jdoc)
Append text extracted from a WADL doc element to the JavaDoc code model. |
protected void |
copyElementContent(Element source,
Element sink)
Copy attributes and content of one element to another. |
protected String |
createTaggedJavaDoc(Element e)
Create tagged Javadoc from an XML element. |
void |
generateAccessorDoc(ResourceNode r,
com.sun.codemodel.JMethod c)
Extract documentation from a WADL resource and add it to a corresponding accessor method. |
void |
generateClassDoc(ResourceNode r,
com.sun.codemodel.JDefinedClass c)
Extract documentation from a WADL resource and add it to a corresponding generated class. |
void |
generateEnumDoc(Param p,
com.sun.codemodel.JDefinedClass e)
Extract documentation from a WADL param with enumerated values and add it to the corresponding Java enum. |
void |
generateMethodDoc(MethodNode m,
com.sun.codemodel.JMethod jm)
Extract documentation from a WADL method and add it to the corresponding generated Java method. |
void |
generateParamDoc(Param p,
com.sun.codemodel.JMethod jm)
Extract documentation from a WADL param and add it to the corresponding Java method. |
void |
generateParamDoc(RepresentationNode r,
com.sun.codemodel.JMethod jm)
Extract documentation from a WADL representation and add it to the corresponding Java method parameter. |
void |
generateReturnDoc(Param p,
com.sun.codemodel.JMethod jm)
Extract documentation from a WADL param and add it to the corresponding Java method return. |
void |
generateReturnDoc(RepresentationNode r,
com.sun.codemodel.JMethod jm)
Extract documentation from a WADL representation and add it to the corresponding Java method return. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaDocUtil()
| Method Detail |
|---|
protected void copyElementContent(Element source,
Element sink)
source - the element to copy from.sink - the element to copy to.protected String createTaggedJavaDoc(Element e)
e - the XML element.
protected void appendTextContent(Doc d,
com.sun.codemodel.JCommentPart jdoc)
d - the WADL doc element.jdoc - the code model element to which the content shoudl be appended.
public void generateClassDoc(ResourceNode r,
com.sun.codemodel.JDefinedClass c)
r - the WADL resource.c - the corresponding class.
public void generateAccessorDoc(ResourceNode r,
com.sun.codemodel.JMethod c)
r - the WADL resource.c - the corresponding class.
public void generateMethodDoc(MethodNode m,
com.sun.codemodel.JMethod jm)
m - the WADL method.jm - the corresponding Java method.
public void generateEnumDoc(Param p,
com.sun.codemodel.JDefinedClass e)
p - the WADL param.e - the corresponding enum.
public void generateParamDoc(Param p,
com.sun.codemodel.JMethod jm)
p - the WADL param.jm - the corresponding method.
public void generateParamDoc(RepresentationNode r,
com.sun.codemodel.JMethod jm)
r - the WADL representation.jm - the corresponding Java method.
public void generateReturnDoc(Param p,
com.sun.codemodel.JMethod jm)
p - the parameter to extract documentation from.jm - the corresponding Java method.
public void generateReturnDoc(RepresentationNode r,
com.sun.codemodel.JMethod jm)
r - the WADL representationjm - the corresponding Java method
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||