Package org.glassfish.jersey.wadl.doclet
Class ResourceDoclet
- java.lang.Object
-
- org.glassfish.jersey.wadl.doclet.ResourceDoclet
-
public class ResourceDoclet extends Object
Creates a resourcedoc XML file.The ResourceDoc file contains the javadoc documentation of resource classes, so that this can be used for extending generated wadl with useful documentation.
- Author:
- Martin Grotzke
-
-
Constructor Summary
Constructors Constructor Description ResourceDoclet()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intoptionLength(String option)Return array length for given option: 1 + the number of arguments that the option takes.static booleanstart(RootDoc root)Start the doclet.static booleanvalidOptions(String[][] options, DocErrorReporter reporter)Validate options.
-
-
-
Method Detail
-
start
public static boolean start(RootDoc root)
Start the doclet.- Parameters:
root- the root JavaDoc document.- Returns:
- true if no exception is thrown.
-
optionLength
public static int optionLength(String option)
Return array length for given option: 1 + the number of arguments that the option takes.- Parameters:
option- option- Returns:
- the number of args for the specified option
-
validOptions
public static boolean validOptions(String[][] options, DocErrorReporter reporter)
Validate options.- Parameters:
options- options to be validatedreporter-DocErrorReporterfor collecting eventual errors- Returns:
- if the specified options are valid
-
-