Package org.glassfish.jersey.wadl.doclet
Interface DocProcessor
- All Known Implementing Classes:
DocProcessorWrapper
public interface DocProcessor
A 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
Modifier and TypeMethodDescriptionString[]specify which of your elements you want to be handled as CDATA.Class<?>[]Specify jaxb classes of instances that you add to theresourcedocmodel.voidprocessClassDoc(TypeElement classDoc, ClassDocType classDocType) Deprecated.default voidprocessClassDocWithDocEnv(TypeElement classDoc, ClassDocType classDocType, DocletEnvironment docEnv) Use this method to extend the providedClassDocTypewith the information from the givenTypeElement.voidprocessMethodDoc(ExecutableElement methodDoc, MethodDocType methodDocType) Deprecated.default voidprocessMethodDocWithDocEnv(ExecutableElement methodDoc, MethodDocType methodDocType, DocletEnvironment docEnv) Process the provided methodDoc and add your custom information to the methodDocType.voidprocessParamTag(VariableElement parameter, ParamDocType paramDocType) Deprecated.default voidprocessParamTagWithDocEnv(VariableElement parameter, ParamDocType paramDocType, DocletEnvironment docEnv) Use this method to extend the providedParamDocTypewith the information from the givenVariableElement.
-
Method Details
-
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
Deprecated.Use this method to extend the providedClassDocTypewith the information from the givenTypeElement.- Parameters:
classDoc- the class javadocclassDocType- theClassDocTypeto extend. This will later be processed by theWadlGenerators.
-
processMethodDoc
Deprecated.Process the provided methodDoc and add your custom information to the methodDocType.- Parameters:
methodDoc- theExecutableElementrepresenting the docs of your method.methodDocType- the relatedMethodDocTypethat will later be processed by theWadlGenerators.
-
processParamTag
Deprecated.Use this method to extend the providedParamDocTypewith the information from the givenParamTagandParameter.- Parameters:
parameter- the parameter (that is documented or not)paramDocType- theParamDocTypeto extend. This will later be processed by theWadlGenerators.
-
processClassDocWithDocEnv
default void processClassDocWithDocEnv(TypeElement classDoc, ClassDocType classDocType, DocletEnvironment docEnv) Use this method to extend the providedClassDocTypewith the information from the givenTypeElement.- Parameters:
classDoc- the class javadocclassDocType- theClassDocTypeto extend. This will later be processed by theWadlGenerators.docEnv- the doclet environment used to extract info from classDoc
-
processMethodDocWithDocEnv
default void processMethodDocWithDocEnv(ExecutableElement methodDoc, MethodDocType methodDocType, DocletEnvironment docEnv) Process the provided methodDoc and add your custom information to the methodDocType.- Parameters:
methodDoc- theExecutableElementrepresenting the docs of your method.methodDocType- the relatedMethodDocTypethat will later be processed by theWadlGenerators.docEnv- the doclet environment used to extract info from methodDoc
-
processParamTagWithDocEnv
default void processParamTagWithDocEnv(VariableElement parameter, ParamDocType paramDocType, DocletEnvironment docEnv) Use this method to extend the providedParamDocTypewith the information from the givenVariableElement.- Parameters:
parameter- the parameter (that is documented or not)paramDocType- theParamDocTypeto extend. This will later be processed by theWadlGenerators.docEnv- the Doclet Environment used to extract info from parameter
-