org.bitbucket.bradleysmithllc.java_cl_parser.OptionLine Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-cl-parser Show documentation
Show all versions of java-cl-parser Show documentation
This parser strives to achieve an elegant, ioc-type interface to make launching command-line projects
effortless.
package org.bitbucket.bradleysmithllc.java_cl_parser;
import java.util.ArrayList;
import java.util.List;
// ${optline.shortName} |${optline.longName} |${optline.dataType} |${optline.defaultValue} |${optline.description}
public class OptionLine {
private String shortName;
private String longName;
private String dataType;
private String defaultValue;
private boolean required;
private final List descriptionLines = new ArrayList();
public List getDescriptionLines()
{
return descriptionLines;
}
public boolean isRequired()
{
return required;
}
public void setRequired(boolean required)
{
this.required = required;
}
public void setDescriptionLines(List lines)
{
descriptionLines.addAll(lines);
}
public String getShortName()
{
return shortName;
}
public void setShortName(String shortName)
{
this.shortName = shortName;
}
public String getLongName()
{
return longName;
}
public void setLongName(String longName)
{
this.longName = longName;
}
public String getDataType()
{
return dataType;
}
public void setDataType(String dataType)
{
this.dataType = dataType;
}
public String getDefaultValue()
{
return defaultValue;
}
public void setDefaultValue(String defaultValue)
{
this.defaultValue = defaultValue;
}
}