public class SimpleCmdLineOption extends Object implements CmdLineOption
CmdLineOption
which implements the basic methods for any
CmdLineOption
. Can be used as-is or extends to add additional option
features.Constructor and Description |
---|
SimpleCmdLineOption() |
SimpleCmdLineOption(String shortOption,
String longOption,
String description,
boolean hasArgs) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getArgsDescription() |
String |
getDescription() |
String |
getLongOption() |
List<RequirementRule> |
getRequirementRules() |
String |
getShortOption() |
List<String> |
getStaticArgs() |
Class<?> |
getType() |
boolean |
hasArgs() |
int |
hashCode() |
boolean |
hasStaticArgs() |
boolean |
isRepeating() |
boolean |
isRequired() |
boolean |
isSubOption() |
void |
setArgsDescription(String argDescription) |
void |
setDescription(String description) |
void |
setHasArgs(boolean hasArgs) |
void |
setIsSubOption(boolean isSubOption) |
void |
setLongOption(String longOption) |
void |
setRepeating(boolean repeating) |
void |
setRequired(boolean required) |
void |
setRequirementRules(List<RequirementRule> requirementRules) |
void |
setShortOption(String shortOption) |
void |
setStaticArgs(List<String> staticArgs) |
void |
setType(Class<?> type) |
String |
toString() |
public Class<?> getType()
getType
in interface CmdLineOption
public void setType(Class<?> type)
setType
in interface CmdLineOption
public String getShortOption()
getShortOption
in interface CmdLineOption
public void setShortOption(String shortOption)
setShortOption
in interface CmdLineOption
public String getLongOption()
getLongOption
in interface CmdLineOption
public void setLongOption(String longOption)
setLongOption
in interface CmdLineOption
public String getDescription()
getDescription
in interface CmdLineOption
public void setDescription(String description)
setDescription
in interface CmdLineOption
public boolean isRepeating()
isRepeating
in interface CmdLineOption
public void setRepeating(boolean repeating)
setRepeating
in interface CmdLineOption
public boolean hasArgs()
hasArgs
in interface CmdLineOption
public void setHasArgs(boolean hasArgs)
setHasArgs
in interface CmdLineOption
public void setArgsDescription(String argDescription)
setArgsDescription
in interface CmdLineOption
public String getArgsDescription()
getArgsDescription
in interface CmdLineOption
public void setStaticArgs(List<String> staticArgs)
setStaticArgs
in interface CmdLineOption
public List<String> getStaticArgs()
getStaticArgs
in interface CmdLineOption
public boolean hasStaticArgs()
hasStaticArgs
in interface CmdLineOption
public void setRequired(boolean required)
setRequired
in interface CmdLineOption
public boolean isRequired()
isRequired
in interface CmdLineOption
public List<RequirementRule> getRequirementRules()
getRequirementRules
in interface CmdLineOption
public void setRequirementRules(List<RequirementRule> requirementRules)
setRequirementRules
in interface CmdLineOption
public void setIsSubOption(boolean isSubOption)
setIsSubOption
in interface CmdLineOption
public boolean isSubOption()
isSubOption
in interface CmdLineOption
public boolean equals(Object obj)
equals
in interface CmdLineOption
equals
in class Object
public int hashCode()
hashCode
in interface CmdLineOption
hashCode
in class Object
Copyright © 1999–2017 Apache OODT. All rights reserved.