Functions | |
def | check_attr_type |
Check that attribute value is of specified type. More... | |
def | check_attr_range |
Check that attribute value is in specified range. More... | |
def | check_date_format |
Verify that date format is composed as follows: YYYY-MM-DD (ISO 8601). More... | |
def | check_time_format |
Verify that time format is composed as follows: THH:MM:SS,MSMS (ISO 8601: 'T' for Time). More... | |
def | check_duration_format |
Verify that duration format is composed as follows: PTxxHxxMxxS (ISO 8601: 'P' for Period). More... | |
def pylmflib.pylmflib.utils.attr.check_attr_range | ( | value, | |
range, | |||
msg, | |||
mapping = None |
|||
) |
Check that attribute value is in specified range.
value | The attribute value to check. |
range | A Python set giving the range of allowed values. |
msg | The message to display if value is out-of-range. |
mapping | A Python dictionary giving mapping between values (i.e. from MDF to LMF) |
def pylmflib.pylmflib.utils.attr.check_attr_type | ( | val, | |
typ, | |||
msg | |||
) |
def pylmflib.pylmflib.utils.attr.check_date_format | ( | date | ) |
def pylmflib.pylmflib.utils.attr.check_duration_format | ( | duration | ) |