Constructor
new BidsFile(name, file, validatorClass)
Constructor.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The name of the file -- used for messages. |
file |
Object | The representation of the file for error messages. |
validatorClass |
BidsValidator | The validator class corresponding to this file. |
- Source:
Classes
Members
file :Object
The Object representing this file data. This is used to generate
BidsHedIssue objects.
Type:
- Object
- Source:
hasHedData
Determine whether this file has any HED data.
- Source:
isTimelineFile
Whether this is a TSV file timeline file.
- Source:
name :string
The name of this file.
Type:
- string
- Source:
validatorClass
The validator class used to validate this file.
- Source:
Methods
validate(schemas) → {Array.<BidsHedIssue>}
Validate this validator's tsv file.
Parameters:
Name | Type | Description |
---|---|---|
schemas |
Schemas | The HED schemas used to validate this file. |
- Source:
Returns:
- Any issues found during validation of this TSV file.
- Type
- Array.<BidsHedIssue>