public class CadIntParameter extends CadParameter
The Cad integer parameter.
Constructor and Description |
---|
CadIntParameter()
Initializes a new instance of the
CadIntParameter class. |
CadIntParameter(int type)
Initializes a new instance of the
CadIntParameter class. |
CadIntParameter(int type,
int optional)
Initializes a new instance of the
CadIntParameter class. |
CadIntParameter(int type,
int optional,
Object defaultValue)
Initializes a new instance of the
CadIntParameter class. |
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Gets or sets the value.
|
void |
init(CadCodeValue value)
Initialize the specified value.
|
void |
init(Object value)
Initialize the specified value.
|
void |
setValue(int value)
Gets or sets the value.
|
getDefaultValue, getIntegralParameterType, getOptional, getSubClassName, getType, init, init, isSet, prepare, setDefaultValue, setIntegralParameterType, setOptional, setSet, setSubClassName
public CadIntParameter(int type)
Initializes a new instance of the CadIntParameter
class.
type
- The type of the parameter.public CadIntParameter()
Initializes a new instance of the CadIntParameter
class.
public CadIntParameter(int type, int optional)
Initializes a new instance of the CadIntParameter
class.
type
- The type of the parameter to create.optional
- The optional flag.public CadIntParameter(int type, int optional, Object defaultValue)
Initializes a new instance of the CadIntParameter
class.
type
- The type of the parameter.optional
- The optional.defaultValue
- The default value.public int getValue()
Gets or sets the value.
public void setValue(int value)
Gets or sets the value.
value
- The value of the parameter.public void init(CadCodeValue value)
Initialize the specified value.
init
in class CadParameter
value
- The value to assign.public void init(Object value)
Initialize the specified value.
init
in class CadParameter
value
- The value of the parameter.