API Documentation > Classes > Class ParamValue
Class ParamValue

package com.ptc.pfc.pfcModelItem;

public class
ParamValue
implements
jxobject


Description
This class describes the value of the parameter.
This determines the type of parameter.
User Guide References:
Method Summary
boolean
Get method for attribute "BoolValue"
If the parameter type is PARAM_BOOLEAN, this is a Boolean value.
Returns the union discriminant value.
double
Get method for attribute "DoubleValue"
If the parameter type is PARAM_DOUBLE, this is a double value.
int
Get method for attribute "IntValue"
If the parameter type is PARAM_INTEGER, this is an integer value.
int
Get method for attribute "NoteId"
If the parameter type is PARAM_NOTE, this is a note identifier.
String
Get method for attribute "StringValue"
If the parameter type is PARAM_STRING, this is a string value.
void
SetBoolValue (boolean value)
Set method for attribute "BoolValue"
If the parameter type is PARAM_BOOLEAN, this is a Boolean value.
void
SetDoubleValue (double value)
Set method for attribute "DoubleValue"
If the parameter type is PARAM_DOUBLE, this is a double value.
void
SetIntValue (int value)
Set method for attribute "IntValue"
If the parameter type is PARAM_INTEGER, this is an integer value.
void
SetNoteId (int value)
Set method for attribute "NoteId"
If the parameter type is PARAM_NOTE, this is a note identifier.
void
SetStringValue (String value)
Set method for attribute "StringValue"
If the parameter type is PARAM_STRING, this is a string value.
Method Detail
Getdiscr
Getdiscr
()
Returns the union discriminant value.
User Guide References:
GetStringValue
String
GetStringValue
()
SetStringValue
void
SetStringValue
(String value)
If the parameter type is PARAM_STRING, this is a string value.
Exceptions thrown (but not limited to):
XBadGetParamValue - Parameter value is not string
User Guide References:
GetIntValue
int
GetIntValue
()
SetIntValue
void
SetIntValue
(int value)
If the parameter type is PARAM_INTEGER, this is an integer value.
Exceptions thrown (but not limited to):
XBadGetParamValue - Parameter value is not an integer
User Guide References:
GetBoolValue
boolean
GetBoolValue
()
SetBoolValue
void
SetBoolValue
(boolean value)
If the parameter type is PARAM_BOOLEAN, this is a Boolean value.
Exceptions thrown (but not limited to):
XBadGetParamValue - Parameter value is not boolean
User Guide References:
GetDoubleValue
double
GetDoubleValue
()
SetDoubleValue
void
SetDoubleValue
(double value)
If the parameter type is PARAM_DOUBLE, this is a double value.
Exceptions thrown (but not limited to):
XBadGetParamValue - Parameter value is not double
User Guide References:
GetNoteId
int
GetNoteId
()
SetNoteId
void
SetNoteId
(int value)
If the parameter type is PARAM_NOTE, this is a note identifier.
Exceptions thrown (but not limited to):
XBadGetParamValue - Parameter value is not a note identifier
User Guide References:
Was this helpful?