Package org.glassfish.jersey.wadl.doclet
Interface DocProcessor
-
- All Known Implementing Classes:
DocProcessorWrapper
public interface DocProcessorA doc processor is handed over javadoc elements so that it can turn this into resource doc elements, even self defined.- Author:
- Martin Grotzke (martin.grotzke at freiheit.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]getCDataElements()specify which of your elements you want to be handled as CDATA.Class<?>[]getRequiredJaxbContextClasses()Specify jaxb classes of instances that you add to theresourcedocmodel.voidprocessClassDoc(ClassDoc classDoc, ClassDocType classDocType)Use this method to extend the providedClassDocTypewith the information from the givenClassDoc.voidprocessMethodDoc(MethodDoc methodDoc, MethodDocType methodDocType)Process the provided methodDoc and add your custom information to the methodDocType.
Use e.g.voidprocessParamTag(ParamTag paramTag, Parameter parameter, ParamDocType paramDocType)Use this method to extend the providedParamDocTypewith the information from the givenParamTagandParameter.
-
-
-
Method Detail
-
getRequiredJaxbContextClasses
Class<?>[] getRequiredJaxbContextClasses()
Specify jaxb classes of instances that you add to theresourcedocmodel. These classes are added to the list of classes when creating the jaxb context withJAXBContext.newInstance( clazzes );.- Returns:
- a list of classes or
null
-
getCDataElements
String[] getCDataElements()
specify which of your elements you want to be handled as CDATA. The use of the '^' between thenamespaceURIand thelocalnameseems to be an implementation detail of the xerces code. When processing xml that doesn't use namespaces, simply omit the namespace prefix as shown in the third CDataElement below.- Returns:
- an Array of element descriptors or
null
-
processClassDoc
void processClassDoc(ClassDoc classDoc, ClassDocType classDocType)
Use this method to extend the providedClassDocTypewith the information from the givenClassDoc.- Parameters:
classDoc- the class javadocclassDocType- theClassDocTypeto extend. This will later be processed by theWadlGenerators.
-
processMethodDoc
void processMethodDoc(MethodDoc methodDoc, MethodDocType methodDocType)
Process the provided methodDoc and add your custom information to the methodDocType.
Use e.g.MethodDocType.getAny()to store custom elements.- Parameters:
methodDoc- theMethodDocrepresenting the docs of your method.methodDocType- the relatedMethodDocTypethat will later be processed by theWadlGenerators.
-
processParamTag
void processParamTag(ParamTag paramTag, Parameter parameter, ParamDocType paramDocType)
Use this method to extend the providedParamDocTypewith the information from the givenParamTagandParameter.- Parameters:
paramTag- the parameter javadocparameter- the parameter (that is documented or not)paramDocType- theParamDocTypeto extend. This will later be processed by theWadlGenerators.
-
-