poussecafe.doc.options.IncludeGeneratedDateOption Maven / Gradle / Ivy
package poussecafe.doc.options;
import java.util.List;
import java.util.Objects;
import jdk.javadoc.doclet.Doclet.Option;
import poussecafe.doc.PousseCafeDocletConfiguration;
import static java.util.Arrays.asList;
public class IncludeGeneratedDateOption implements Option {
public IncludeGeneratedDateOption(PousseCafeDocletConfiguration.Builder configBuilder) {
Objects.requireNonNull(configBuilder);
this.configBuilder = configBuilder;
}
private PousseCafeDocletConfiguration.Builder configBuilder;
@Override
public int getArgumentCount() {
return 0;
}
@Override
public String getDescription() {
return "Include generated date";
}
@Override
public Kind getKind() {
return Kind.STANDARD;
}
@Override
public List getNames() {
return asList("-includeGeneratedDate");
}
@Override
public String getParameters() {
return "";
}
@Override
public boolean process(String option,
List arguments) {
configBuilder.includeGenerationDate(true);
return true;
}
}