HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
app.Utils.PropertiesValidator Class Reference
Inheritance diagram for app.Utils.PropertiesValidator:
Collaboration diagram for app.Utils.PropertiesValidator:

Public Member Functions

def __init__ (self)
 

Static Public Member Functions

def isValueIn (classType, prefix, value)
 

Detailed Description

Definition at line 67 of file Utils.py.

Constructor & Destructor Documentation

◆ __init__()

def app.Utils.PropertiesValidator.__init__ (   self)

Definition at line 70 of file Utils.py.

70  def __init__(self):
71  pass
72 
73 
def __init__(self)
constructor
Definition: UIDGenerator.py:19

Member Function Documentation

◆ isValueIn()

def app.Utils.PropertiesValidator.isValueIn (   classType,
  prefix,
  value 
)
static

Definition at line 75 of file Utils.py.

75  def isValueIn(classType, prefix, value):
76  retVal = False
77  for localValue in classType.__dict__:
78  if str(localValue).find(prefix) == 0:
79  if value == getattr(classType, localValue, None):
80  retVal = True
81  break
82  return retVal
83 
84 
85 # #getPath global function, finds and return value by path in json string or dict document
86 # dictionary - incoming dictionary (optional)
87 # jsonString - incoming json string (optional)
88 # path - incoming path to find
89 # method return valid value or raises exceptions -
90 # [ValueError] - bad jsodnString format
91 # [TypeError, KeyError, IndexError] - excpetions raised if path not found
92 # Warning!!! path don't checks by syntaxis

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