All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pageseeder.xmldoclet.options.SubfoldersOption Maven / Gradle / Ivy

package org.pageseeder.xmldoclet.options;

import jdk.javadoc.doclet.Reporter;

import java.util.Collections;
import java.util.List;

/**
 * Option to generate the documentation within subfolders.
 *
 * @author Christophe Lauret
 * @version 1.0
 */
public class SubfoldersOption extends XMLDocletOptionBase {

  private boolean enabled = false;

  public SubfoldersOption(Reporter reporter) {
    super(reporter);
  }

  @Override
  public int getArgumentCount() {
    return 0;
  }

  @Override
  public String getDescription() {
    return "Whether files are organised as subfolders or all in the same folder";
  }

  @Override
  public Kind getKind() {
    return Kind.STANDARD;
  }

  @Override
  public List getNames() {
    return Collections.singletonList("-subfolders");
  }

  @Override
  public String getParameters() {
    return "";
  }

  @Override
  public boolean process(String option, List arguments) {
    this.enabled = true;
    return true;
  }

  public boolean enabled() {
    return this.enabled;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy