aac.plugins.aac_primitives¶
__init__.py module for the AaC primitive constraints plugin.
Functions
Returns information about the plugin. |
|
|
Verify that a boolen value is True, False, or None. |
|
Verify that a data reference value is interpretable and exists. |
|
Verify that a date value is interpretable as a date. |
|
Verify that a directory value is interpretable as a directory. |
|
Verify that a file value is interpretable as a file. |
|
Verify that an integer value is interpretable as an integer. |
|
Verify that a number value is interpretable as a number. |
|
Verify that a string value is interpretable as a string. |
|
Verify that a type reference value is interpretable and exists. |
- aac.plugins.aac_primitives.register_plugin() None [source]¶
Returns information about the plugin.
- Returns:
A collection of information about the plugin and what it contributes.
- Return type:
None
- aac.plugins.aac_primitives.run_check_bool(value: str, type_declaration: str, arguments: Any, source: AaCFile, location: SourceLocation) ExecutionResult [source]¶
Verify that a boolen value is True, False, or None. None is considered False by python, so we allow None as a valid value.
- Parameters:
value (str)
type_declaration (str)
arguments (Any)
source (AaCFile)
location (SourceLocation)
- Return type:
- aac.plugins.aac_primitives.run_check_dataref(value: str, type_declaration: str, arguments: Any, source: AaCFile, location: SourceLocation) ExecutionResult [source]¶
Verify that a data reference value is interpretable and exists.
- Parameters:
value (str)
type_declaration (str)
arguments (Any)
source (AaCFile)
location (SourceLocation)
- Return type:
- aac.plugins.aac_primitives.run_check_date(value: str, type_declaration: str, arguments: Any, source: AaCFile, location: SourceLocation) ExecutionResult [source]¶
Verify that a date value is interpretable as a date.
- Parameters:
value (str)
type_declaration (str)
arguments (Any)
source (AaCFile)
location (SourceLocation)
- Return type:
- aac.plugins.aac_primitives.run_check_directory(value: str, type_declaration: str, arguments: Any, source: AaCFile, location: SourceLocation) ExecutionResult [source]¶
Verify that a directory value is interpretable as a directory.
- Parameters:
value (str)
type_declaration (str)
arguments (Any)
source (AaCFile)
location (SourceLocation)
- Return type:
- aac.plugins.aac_primitives.run_check_file(value: str, type_declaration: str, arguments: Any, source: AaCFile, location: SourceLocation) ExecutionResult [source]¶
Verify that a file value is interpretable as a file.
- Parameters:
value (str)
type_declaration (str)
arguments (Any)
source (AaCFile)
location (SourceLocation)
- Return type:
- aac.plugins.aac_primitives.run_check_int(value: str, type_declaration: str, arguments: Any, source: AaCFile, location: SourceLocation) ExecutionResult [source]¶
Verify that an integer value is interpretable as an integer.
- Parameters:
value (str)
type_declaration (str)
arguments (Any)
source (AaCFile)
location (SourceLocation)
- Return type:
- aac.plugins.aac_primitives.run_check_number(value: str, type_declaration: str, arguments: Any, source: AaCFile, location: SourceLocation) ExecutionResult [source]¶
Verify that a number value is interpretable as a number.
- Parameters:
value (str)
type_declaration (str)
arguments (Any)
source (AaCFile)
location (SourceLocation)
- Return type:
- aac.plugins.aac_primitives.run_check_string(value: str, type_declaration: str, arguments: Any, source: AaCFile, location: SourceLocation) ExecutionResult [source]¶
Verify that a string value is interpretable as a string.
- Parameters:
value (str)
type_declaration (str)
arguments (Any)
source (AaCFile)
location (SourceLocation)
- Return type:
- aac.plugins.aac_primitives.run_check_typeref(value: str, type_declaration: str, arguments: Any, source: AaCFile, location: SourceLocation) ExecutionResult [source]¶
Verify that a type reference value is interpretable and exists.
- Parameters:
value (str)
type_declaration (str)
arguments (Any)
source (AaCFile)
location (SourceLocation)
- Return type:
Modules
The AaC AaC primitive constraints plugin implementation module. |