public class FlagOption extends AbstractOption
Modifier and Type | Field and Description |
---|---|
protected boolean |
isSet |
cliChar, illegalNameCharacters, name, purpose
Constructor and Description |
---|
FlagOption(String name,
char cliChar,
String purpose) |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultCLIString()
Gets the Command Line Interface text
|
String |
getStateString()
Gets the state of this option in human readable form
|
String |
getValueAsCLIString()
Gets the value of a Command Line Interface text as a string
|
boolean |
isSet() |
void |
set() |
void |
setValue(boolean v) |
void |
setValueViaCLIString(String s)
Sets value of this option via the Command Line Interface text
|
void |
unset() |
copy, getCLIChar, getName, getPurpose, nameIsLegal, resetToDefault
public void setValue(boolean v)
public void set()
public void unset()
public boolean isSet()
public String getDefaultCLIString()
Option
public String getValueAsCLIString()
Option
public void setValueViaCLIString(String s)
Option
s
- the Command Line Interface textpublic String getStateString()
Option
getStateString
in interface Option
getStateString
in class AbstractOption
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.