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

de.tototec.cmdoption.CmdlineModel Maven / Gradle / Ivy

Go to download

CmdOption is a simple annotation-driven command line parser toolkit for Java 5 applications that is configured through annotations

There is a newer version: 0.7.1-23-447ff1
Show newest version
package de.tototec.cmdoption;

import java.util.ArrayList;
import java.util.List;
import java.util.ResourceBundle;

public class CmdlineModel {

	private final String programName;
	private final List options;
	private final List commands;
	private final OptionHandle parameter;
	private String aboutLine;
	private ResourceBundle resourceBundle;

	public CmdlineModel(final String programName,
			final List options,
			final List commands,
			final OptionHandle parameter,
			final String aboutLine,
			final ResourceBundle resourceBundle) {
		this.programName = programName;
		this.aboutLine = aboutLine;
		this.options = new ArrayList(options);
		this.commands = new ArrayList(commands);
		this.parameter = parameter;
		this.resourceBundle = resourceBundle;
	}

	public String getProgramName() {
		return programName;
	}

	public List getOptions() {
		return options;
	}

	public List getCommands() {
		return commands;
	}

	public OptionHandle getParameter() {
		return parameter;
	}

	public String getAboutLine() {
		return aboutLine;
	}

	public ResourceBundle getResourceBundle() {
		return resourceBundle;
	}

	@Override
	public String toString() {
		return getClass().getSimpleName() + //
				"(programName=" + getProgramName() + //
				",options=" + getOptions() + //
				",commands=" + getCommands() + //
				",parameter=" + getParameter() + //
				",aboutLine=" + getAboutLine() + //
				")";

	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy