Constructor
new SchemaValueClass(name, booleanAttributes, valueAttributes, charClassRegex, wordRegex)
Constructor.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The name of this value class. |
booleanAttributes |
Set.<SchemaAttribute> | The boolean attributes for this value class. |
valueAttributes |
Map.<SchemaAttribute, *> | The value attributes for this value class. |
charClassRegex |
RegExp | The character class-based regular expression for this value class. |
wordRegex |
RegExp | The "word form"-based regular expression for this value class. |
- Source:
Classes
Methods
validateValue(value) → {boolean}
Determine if a value is valid according to this value class.
Parameters:
Name | Type | Description |
---|---|---|
value |
string | A HED value. |
- Source:
Returns:
Whether the value conforms to this value class.
- Type
- boolean