Package org.glassfish.jersey.wadl.doclet
Class DocProcessorWrapper
- java.lang.Object
-
- org.glassfish.jersey.wadl.doclet.DocProcessorWrapper
-
- All Implemented Interfaces:
DocProcessor
public class DocProcessorWrapper extends Object implements DocProcessor
ThisDocProcessorwraps multipleDocProcessors.- Author:
- Martin Grotzke (martin.grotzke at freiheit.com)
-
-
Constructor Summary
Constructors Constructor Description DocProcessorWrapper()Create newDocProcessorWrapperinstance.
-
Method Summary
All Methods Instance Methods Concrete 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
public Class<?>[] getRequiredJaxbContextClasses()
Description copied from interface:DocProcessorSpecify 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 );.- Specified by:
getRequiredJaxbContextClassesin interfaceDocProcessor- Returns:
- a list of classes or
null
-
getCDataElements
public String[] getCDataElements()
Description copied from interface:DocProcessorspecify 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.- Specified by:
getCDataElementsin interfaceDocProcessor- Returns:
- an Array of element descriptors or
null
-
processClassDoc
public void processClassDoc(ClassDoc classDoc, ClassDocType classDocType)
Description copied from interface:DocProcessorUse this method to extend the providedClassDocTypewith the information from the givenClassDoc.- Specified by:
processClassDocin interfaceDocProcessor- Parameters:
classDoc- the class javadocclassDocType- theClassDocTypeto extend. This will later be processed by theWadlGenerators.
-
processMethodDoc
public void processMethodDoc(MethodDoc methodDoc, MethodDocType methodDocType)
Description copied from interface:DocProcessorProcess the provided methodDoc and add your custom information to the methodDocType.
Use e.g.MethodDocType.getAny()to store custom elements.- Specified by:
processMethodDocin interfaceDocProcessor- Parameters:
methodDoc- theMethodDocrepresenting the docs of your method.methodDocType- the relatedMethodDocTypethat will later be processed by theWadlGenerators.
-
processParamTag
public void processParamTag(ParamTag paramTag, Parameter parameter, ParamDocType paramDocType)
Description copied from interface:DocProcessorUse this method to extend the providedParamDocTypewith the information from the givenParamTagandParameter.- Specified by:
processParamTagin interfaceDocProcessor- Parameters:
paramTag- the parameter javadocparameter- the parameter (that is documented or not)paramDocType- theParamDocTypeto extend. This will later be processed by theWadlGenerators.
-
-