visualization/visualization-spi-doclet/src/main/java/se/jguru/nazgul/tools/visualization/spi/doclet/VisualizationDoclet.java
@Override
    public int optionLength(final String option) {

        // #1) Handle the -help option.
        if (JavaDocOption.HELP.getOption().equals(option)) {

            // First, provide the help text from the Standard Doclet.
            final int toReturn = HtmlDoclet.optionLength(option);

            // Print the options provided by VisualizationDoclet.
            System.out.println();
            System.out.println("Provided by " + VisualizationDoclet.class.getName() + ":");
            for (JavaDocOption current : JavaDocOption.values()) {
                if (current != JavaDocOption.HELP) {
                    System.out.println(current.getOption() + " " + current.getHelpText());
                }
            }

            // Delegate to the standard Doclet implementation.
            return toReturn;
        }

        // #2) Handle all JavaDoc options known to this Doclet
        for (JavaDocOption current : JavaDocOption.values()) {
            if (current.getOption().equals(option)) {
                return current.getOptionLength();
            }
        }

        // #3) Delegate to the standard Doclet.
        return HtmlDoclet.optionLength(option);
    }
@Override
    public int optionLength(final String option) {

        // #1) Handle the -help option.
        if (JavaDocOption.HELP.getOption().equals(option)) {

            // First, provide the help text from the Standard Doclet.
            final int toReturn = HtmlDoclet.optionLength(option);

            // Print the options provided by VisualizationDoclet.
            System.out.println();
            System.out.println("Provided by " + VisualizationDoclet.class.getName() + ":");
            for (JavaDocOption current : JavaDocOption.values()) {
                if (current != JavaDocOption.HELP) {
                    System.out.println(current.getOption() + " " + current.getHelpText());
                }
            }

            // Delegate to the standard Doclet implementation.
            return toReturn;
        }

        // #2) Handle all JavaDoc options known to this Doclet
        for (JavaDocOption current : JavaDocOption.values()) {
            if (current.getOption().equals(option)) {
                return current.getOptionLength();
            }
        }

        // #3) Delegate to the standard Doclet.
        return HtmlDoclet.optionLength(option);
    }
@ Override public int optionLength ( final String option ) { // #1) Handle the -help option. if ( JavaDocOption . HELP . getOption ( ) . equals ( option ) ) { // First, provide the help text from the Standard Doclet. final int toReturn = HtmlDoclet . optionLength ( option ) ; // Print the options provided by VisualizationDoclet. System . out . println ( ) ; System . out . println ( "Provided by " + VisualizationDoclet . class . getName ( ) + ":" ) ; for ( JavaDocOption current : JavaDocOption . values ( ) ) { if ( current != JavaDocOption . HELP ) { System . out . println ( current . getOption ( ) + " " + current . getHelpText ( ) ) ; } } // Delegate to the standard Doclet implementation. return toReturn ; } // #2) Handle all JavaDoc options known to this Doclet for ( JavaDocOption current : JavaDocOption . values ( ) ) { if ( current . getOption ( ) . equals ( option ) ) { return current . getOptionLength ( ) ; } } // #3) Delegate to the standard Doclet. return HtmlDoclet . optionLength ( option ) ; }
{@inheritDoc}
{