de.tototec.cmdoption.CmdlineModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of de.tototec.cmdoption Show documentation
Show all versions of de.tototec.cmdoption Show documentation
CmdOption is a simple annotation-driven command line parser toolkit for Java 5 applications that is configured through annotations
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