public class CadShortParameter extends CadParameter
The Cad short parameter.
Constructor and Description |
---|
CadShortParameter()
Initializes a new instance of the
CadShortParameter class. |
CadShortParameter(int attribute)
Initializes a new instance of the
CadShortParameter class. |
CadShortParameter(int type,
int optional)
Initializes a new instance of the
CadShortParameter class. |
CadShortParameter(int type,
int optional,
Object defaultValue)
Initializes a new instance of the
CadShortParameter class. |
Modifier and Type | Method and Description |
---|---|
short |
getValue()
Gets or sets the value.
|
void |
init(CadCodeValue value)
Initialize the specified value.
|
void |
init(Object value)
Initialize the specified value.
|
void |
setValue(short value)
Gets or sets the value.
|
getDefaultValue, getIntegralParameterType, getOptional, getSubClassName, getType, init, init, isSet, prepare, setDefaultValue, setIntegralParameterType, setOptional, setSet, setSubClassName
public CadShortParameter(int attribute)
Initializes a new instance of the CadShortParameter
class.
attribute
- The attribute.public CadShortParameter()
Initializes a new instance of the CadShortParameter
class.
public CadShortParameter(int type, int optional)
Initializes a new instance of the CadShortParameter
class.
type
- The type of the parameter.optional
- The optional flag.public CadShortParameter(int type, int optional, Object defaultValue)
Initializes a new instance of the CadShortParameter
class.
type
- The type of the parameter.optional
- The optional flag.defaultValue
- The default value.public short getValue()
Gets or sets the value.
public void setValue(short 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.