public abstract class CadParameter extends Object
Parameter base class
Constructor and Description |
---|
CadParameter()
Initializes a new instance of the
CadParameter class. |
CadParameter(int type)
Initializes a new instance of the
CadParameter class. |
CadParameter(int type,
int optional)
Initializes a new instance of the
CadParameter class. |
CadParameter(int type,
int optional,
Object defaultValue)
Initializes a new instance of the
CadParameter class. |
CadParameter(int type,
int optional,
Object defaultValue,
Object[] bondedObject)
Initializes a new instance of the
CadParameter class. |
CadParameter(int type,
Object bondingObject)
Initializes a new instance of the
CadParameter class. |
Modifier and Type | Method and Description |
---|---|
Object |
getDefaultValue()
Gets or sets the default value.
|
int |
getIntegralParameterType()
Gets or sets the type of the integral parameter.
|
int |
getOptional()
Gets or sets a value indicating whether this instance is optional.
|
String |
getSubClassName()
Gets or sets the name of the sub class.
|
int |
getType()
Gets the type.
|
abstract void |
init(CadCodeValue value)
Initialize the specified value.
|
void |
init(int type,
CadCodeValue value)
Initialize the specified type.
|
void |
init(int type,
Object value)
Initialize the specified type.
|
abstract void |
init(Object value)
Initialize the specified value.
|
boolean |
isSet()
Gets or sets a value indicating whether this instance is set.
|
void |
prepare(int type)
The prepare function.
|
void |
setDefaultValue(Object value)
Gets or sets the default value.
|
void |
setIntegralParameterType(int value)
Gets or sets the type of the integral parameter.
|
void |
setOptional(int value)
Gets or sets a value indicating whether this instance is optional.
|
void |
setSet(boolean value)
Gets or sets a value indicating whether this instance is set.
|
void |
setSubClassName(String value)
Gets or sets the name of the sub class.
|
public CadParameter(int type)
Initializes a new instance of the CadParameter
class.
type
- The type of the parameter.public CadParameter(int type, int optional)
Initializes a new instance of the CadParameter
class.
type
- The type of the parameter.optional
- The optional flag.public CadParameter(int type, int optional, Object defaultValue)
Initializes a new instance of the CadParameter
class.
type
- The type of the parameter.optional
- The optional flag.defaultValue
- The default value.public CadParameter(int type, int optional, Object defaultValue, Object[] bondedObject)
Initializes a new instance of the CadParameter
class.
type
- The type of the parameter.optional
- The optional flag.defaultValue
- The default value.bondedObject
- The bonded object.public CadParameter(int type, Object bondingObject)
Initializes a new instance of the CadParameter
class.
type
- The type of the parameter.bondingObject
- The bonding object.public CadParameter()
Initializes a new instance of the CadParameter
class.
public Object getDefaultValue()
Gets or sets the default value.
public void setDefaultValue(Object value)
Gets or sets the default value.
value
- The default value.public int getIntegralParameterType()
Gets or sets the type of the integral parameter.
public void setIntegralParameterType(int value)
Gets or sets the type of the integral parameter.
value
- The type of the integral parameter.public int getOptional()
Gets or sets a value indicating whether this instance is optional.
true
if this instance is optional; otherwise, false
.public void setOptional(int value)
Gets or sets a value indicating whether this instance is optional.
value
- true
if this instance is optional; otherwise, false
.public boolean isSet()
Gets or sets a value indicating whether this instance is set.
true
if this instance is set; otherwise, false
.public void setSet(boolean value)
Gets or sets a value indicating whether this instance is set.
value
- true
if this instance is set; otherwise, false
.public String getSubClassName()
Gets or sets the name of the sub class.
public void setSubClassName(String value)
Gets or sets the name of the sub class.
value
- The name of the sub class.public int getType()
Gets the type.
public void init(int type, CadCodeValue value)
Initialize the specified type.
type
- The type of the parameter.value
- The value of the parameter.public void init(int type, Object value)
Initialize the specified type.
type
- The type of the parameter.value
- The value of the parameter.public abstract void init(CadCodeValue value)
Initialize the specified value.
value
- The value of the parameter.public abstract void init(Object value)
Initialize the specified value.
value
- The value of the parameter.public void prepare(int type)
The prepare function.
type
- The type of the parameter.