OSFI-Python
3.9.3
OpenSF Integration Library
|
Public Member Functions | |
def | __new__ (cls, name, parseFun, is_str) |
def | __init__ (self, name, parseFun, is_str) |
def | __str__ (self) |
def | parseSingleValue (self, x) |
def | parseMultipleValues (self, value, expectedLen=None) |
def | splitValues (self, string, expected_empty=False) |
Static Public Member Functions | |
def | getParamTypeName (paramType) |
def | valueOf (typeName) |
Internal definition of parameter types
def OSFI.ParamType.ParamType.parseMultipleValues | ( | self, | |
value, | |||
expectedLen = None |
|||
) |
Parse a sequence of values in a string into a vector. If expectedLen is given, also assert that the number of parsed values equals that argument.
References OSFI.ParamType.ParamType.__parseSingleVal, OSFI.Parameter.Parameter.splitValues(), and OSFI.ParamType.ParamType.splitValues().
def OSFI.ParamType.ParamType.splitValues | ( | self, | |
string, | |||
expected_empty = False |
|||
) |
Split values into the tokens to be parsed @param string unparsed str or None (only for empty dimensions in ARRAY parameters) @param expected_empty True if the data corresponds to an empty dimension in an ARRAY param @return List[str] with the unparsed but split values
References OSFI.ParamType.ParamType.__isStringBased.