OSFI-Python  3.9.2
OpenSF Integration Library
OSFI.ParamType.ParamType Class Reference

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)
 

Detailed Description

 Internal definition of parameter types

Member Function Documentation

◆ parseMultipleValues()

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.ParamType.ParamType.splitValues(), and OSFI.Parameter.Parameter.splitValues().

◆ 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.


The documentation for this class was generated from the following file: