init¶
- initiallyValidateHedString(hedString, hedSchemas, options, definitions=null)¶
Perform initial validation on a HED string and parse it so further validation can be performed.
- Arguments:
hedString (string|ParsedHedString) – The HED string to validate.
hedSchemas (Schemas) – The HED schemas to validate against.
options (Object.<string, boolean>) – Any validation options passed in.
definitions (Map.<string, ParsedHedGroup>) – The definitions for this HED dataset.
- Returns:
- validateHedString(hedString, hedSchemas, checkForWarnings, expectValuePlaceholderString)¶
Note
Deprecated.
Validate a HED string.
- Arguments:
hedString (string|ParsedHedString) – The HED string to validate.
hedSchemas (Schemas) – The HED schemas to validate against.
checkForWarnings (boolean) – Whether to check for warnings or only errors.
expectValuePlaceholderString (boolean) – Whether this string is expected to have a ‘#’ placeholder representing a value.
- Returns:
- validateHedEvent(hedString, hedSchemas, checkForWarnings)¶
Note
Deprecated.
Validate a HED event string.
- Arguments:
hedString (string|ParsedHedString) – The HED event string to validate.
hedSchemas (Schemas) – The HED schemas to validate against.
checkForWarnings (boolean) – Whether to check for warnings or only errors.
- Returns:
- validateHedEventWithDefinitions(hedString, hedSchemas, definitions, checkForWarnings)¶
Validate a HED event string.
- Arguments:
hedString (string|ParsedHedString) – The HED event string to validate.
hedSchemas (Schemas) – The HED schemas to validate against.
definitions (Map.<string, ParsedHedGroup>) – The dataset’s parsed definitions.
checkForWarnings (boolean) – Whether to check for warnings or only errors.
- Returns: