public class CadBoolParameter extends CadParameter
The Cad boolean parameter.
| Constructor and Description |
|---|
CadBoolParameter()
Initializes a new instance of the
CadBoolParameter class. |
CadBoolParameter(int type)
Initializes a new instance of the
CadBoolParameter class. |
CadBoolParameter(int type,
int optional)
Initializes a new instance of the
CadBoolParameter class. |
CadBoolParameter(int type,
int optional,
Object defaultValue)
Initializes a new instance of the
CadBoolParameter class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getValue()
Gets or sets a value indicating whether this
CadBoolParameter is value. |
void |
init(CadCodeValue value)
Initialize the specified value.
|
void |
init(Object value)
Initialize the specified value.
|
void |
setValue(boolean value)
Gets or sets a value indicating whether this
CadBoolParameter is value. |
getDefaultValue, getIntegralParameterType, getOptional, getSubClassName, getType, init, init, isSet, prepare, setDefaultValue, setIntegralParameterType, setOptional, setSet, setSubClassNamepublic CadBoolParameter(int type)
Initializes a new instance of the CadBoolParameter class.
type - The type of the parameter.public CadBoolParameter()
Initializes a new instance of the CadBoolParameter class.
public CadBoolParameter(int type,
int optional)
Initializes a new instance of the CadBoolParameter class.
type - The type of the parameter.optional - Optional flag.public CadBoolParameter(int type,
int optional,
Object defaultValue)
Initializes a new instance of the CadBoolParameter class.
type - The type of the parameter.optional - The optional.defaultValue - The default value.public boolean getValue()
Gets or sets a value indicating whether this CadBoolParameter is value.
true if value; otherwise, false.public void setValue(boolean value)
Gets or sets a value indicating whether this CadBoolParameter is value.
value - true if value; otherwise, false.public void init(CadCodeValue value)
Initialize the specified value.
init in class CadParametervalue - The value of the parameter.public void init(Object value)
Initialize the specified value.
init in class CadParametervalue - The value of the parameter.