StringValidator¶
- class StringValidator[source]
Runs checks on the raw string that depend on multiple characters, e.g. mismatched parentheses
Methods
Report unmatched parentheses. |
|
Report missing commas or commas in value tags. |
|
Attributes
- StringValidator.__init__()¶
- static StringValidator.check_count_tag_group_parentheses(hed_string)[source]¶
Report unmatched parentheses.
- Parameters:
hed_string (str) – A hed string.
- Returns:
A list of validation list. Each issue is a dictionary.
- Return type:
list
- StringValidator.check_delimiter_issues_in_hed_string(hed_string)[source]¶
Report missing commas or commas in value tags.
- Parameters:
hed_string (str) – A hed string.
- Returns:
A validation issues list. Each issue is a dictionary.
- Return type:
list
- StringValidator.CLOSING_GROUP_CHARACTER = ')'¶
- StringValidator.COMMA = ','¶
- StringValidator.OPENING_GROUP_CHARACTER = '('¶