Package org.glassfish.jersey.wadl.doclet
Class DocProcessorWrapper
java.lang.Object
org.glassfish.jersey.wadl.doclet.DocProcessorWrapper
- All Implemented Interfaces:
DocProcessor
-
Constructor Summary
Constructors -
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) Use this method to extend the providedClassDocTypewith the information from the givenTypeElement.voidprocessClassDocWithDocEnv(TypeElement classDoc, ClassDocType classDocType, DocletEnvironment docEnv) Use this method to extend the providedClassDocTypewith the information from the givenTypeElement.voidprocessMethodDoc(ExecutableElement methodDoc, MethodDocType methodDocType) Process the provided methodDoc and add your custom information to the methodDocType.voidprocessMethodDocWithDocEnv(ExecutableElement methodDoc, MethodDocType methodDocType, DocletEnvironment docEnv) Process the provided methodDoc and add your custom information to the methodDocType.voidprocessParamTag(VariableElement parameter, ParamDocType paramDocType) Use this method to extend the providedParamDocTypewith the information from the givenParamTagandParameter.voidprocessParamTagWithDocEnv(VariableElement parameter, ParamDocType paramDocType, DocletEnvironment docEnv) Use this method to extend the providedParamDocTypewith the information from the givenVariableElement.
-
Constructor Details
-
DocProcessorWrapper
public DocProcessorWrapper()Create newDocProcessorWrapperinstance.
-
-
Method Details
-
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
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
Description copied from interface:DocProcessorUse this method to extend the providedClassDocTypewith the information from the givenTypeElement.- Specified by:
processClassDocin interfaceDocProcessor- Parameters:
classDoc- the class javadocclassDocType- theClassDocTypeto extend. This will later be processed by theWadlGenerators.
-
processMethodDoc
Description copied from interface:DocProcessorProcess the provided methodDoc and add your custom information to the methodDocType.- Specified by:
processMethodDocin interfaceDocProcessor- Parameters:
methodDoc- theExecutableElementrepresenting the docs of your method.methodDocType- the relatedMethodDocTypethat will later be processed by theWadlGenerators.
-
processParamTag
Description copied from interface:DocProcessorUse this method to extend the providedParamDocTypewith the information from the givenParamTagandParameter.- Specified by:
processParamTagin interfaceDocProcessor- Parameters:
parameter- the parameter (that is documented or not)paramDocType- theParamDocTypeto extend. This will later be processed by theWadlGenerators.
-
processClassDocWithDocEnv
public void processClassDocWithDocEnv(TypeElement classDoc, ClassDocType classDocType, DocletEnvironment docEnv) Description copied from interface:DocProcessorUse this method to extend the providedClassDocTypewith the information from the givenTypeElement.- Specified by:
processClassDocWithDocEnvin interfaceDocProcessor- 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
public void processMethodDocWithDocEnv(ExecutableElement methodDoc, MethodDocType methodDocType, DocletEnvironment docEnv) Description copied from interface:DocProcessorProcess the provided methodDoc and add your custom information to the methodDocType.- Specified by:
processMethodDocWithDocEnvin interfaceDocProcessor- 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
public void processParamTagWithDocEnv(VariableElement parameter, ParamDocType paramDocType, DocletEnvironment docEnv) Description copied from interface:DocProcessorUse this method to extend the providedParamDocTypewith the information from the givenVariableElement.- Specified by:
processParamTagWithDocEnvin interfaceDocProcessor- 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
-