public final class ConfigBoolean extends ConfigVariable
spec| Constructor and Description |
|---|
ConfigBoolean(OptionSpec spec) |
ConfigBoolean(OptionSpec spec,
boolean enabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToCommandline(org.apache.tools.ant.types.Commandline cmdline)
Adds arguments to the end of
cmdline corresponding to the state of this variable. |
boolean |
isSet()
Predicate specifying whether this ConfigVariable has been set.
|
void |
set(boolean value) |
void |
set(String value)
Set the value of this
ConfigVariable |
getSpec, matchespublic ConfigBoolean(OptionSpec spec)
public ConfigBoolean(OptionSpec spec, boolean enabled)
public void set(boolean value)
public void set(String value)
ConfigVariableConfigVariableset in class ConfigVariablevalue - the value (as a String) that this ConfigVariable should be set to.public boolean isSet()
ConfigVariableset.isSet in class ConfigVariableConfigVariable has been set, false otherwise.public void addToCommandline(org.apache.tools.ant.types.Commandline cmdline)
BaseConfigVariablecmdline corresponding to the state of this variable.addToCommandline in interface IOptionSourceaddToCommandline in class BaseConfigVariablecmdline - The Commandline object to which arguments correspond to this option should be addedCopyright © 2016 The Apache Software Foundation. All rights reserved.