@PHXClassDecorator(PHXTException_Decorator)
class PHXString(PHXSimpleType)
The ModelCenter type for Strings. This class adds the following features to thePHXSimpleType:
value: StringenumValues: String[]enumAliases: String[]
def __init__(self, varName)
@param varName: the name of the variable already declared in the wrapper to reference@type varName: string@rtype: void
def getValue(self)
retrieves the current value of the variable
@rtype: string
def setValue(self, val)
sets the value for the variable
@param val: the value@type val: string
def toString(self)
converts the variable to a string
@rtype: string
def fromString(self, val)
converts a String representation to the internal value
@param val: the value to convert@type val: string@rtype: void
def getEnumAliases(self)
Gets the enumeration aliases list
@rtype: string[]
def setEnumAliases(self, aliases)
Sets the enumeration aliases list
@param aliases: An array of strings@type aliases: string (as a comma-separated list) or string[]@rtype: void
def getEnumValues(self)
Gets the enumeration values list
@rtype: string[]
def setEnumValues(self, values)
Sets the enumeration values list
@param values: Either a comma-separated list of values or an array of values@type values: string (as a comma-separated list) or string[]@rtype: void