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

net.gdface.codegen.CreateInterfaceOptions Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
package net.gdface.codegen;

import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;

public class CreateInterfaceOptions implements CreateInterfaceSourceConstants,DuplicatedConstants {
	private Options options = new Options();
	private final CreateInterfaceOptions instance = new CreateInterfaceOptions();

	/**
	 * 
	 */
	protected CreateInterfaceOptions() {
		options.addOption(HELP_OPTION, HELP_OPTION_LONG, false, HELP_OPTION_DESC);
		options.addOption(Option.builder(INTERFACE_CLASS_OPTION).longOpt(INTERFACE_CLASS_OPTION_LONG)
				.desc(INTERFACE_CLASS_OPTION_DESC).numberOfArgs(1).type(Class.class).required().build());
		options.addOption(Option.builder(REFERENCE_CLASS_OPTION).longOpt(REFERENCE_CLASS_OPTION_LONG)
				.desc(REFERENCE_CLASS_OPTION_DESC).numberOfArgs(1).type(Class.class).build());
		options.addOption(Option.builder(BASE_CLASS_OPTION).longOpt(BASE_CLASS_OPTION_LONG).desc(BASE_CLASS_OPTION_DESC)
				.numberOfArgs(1).type(Class.class).build());
		options.addOption(Option
				.builder(PACKAGE_OPTION)
				.longOpt(PACKAGE_OPTION_LONG)
				.desc(PACKAGE_OPTION_DESC)
				.numberOfArgs(1).required().build());
	}

	/**
	 * @return instance
	 */
	public CreateInterfaceOptions getInstance() {
		return instance;
	}

	/**
	 * @return options
	 */
	public Options getOptions() {
		return options;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy