OVAL variable component Oval_component instances specify evaluation constraints on local variables (see oval_variable_get_type). More...
#include <oval_definitions.h>
Public Member Functions | |
struct oval_component * | oval_component_new (struct oval_definition_model *, oval_component_type_t type) |
Construct new intance of Oval_component. | |
struct oval_component * | oval_component_clone (struct oval_definition_model *new_model, struct oval_component *old_component) |
Clone instance of Oval_component. | |
void | oval_component_free (struct oval_component *) |
Free instance of Oval_component. | |
Setters | |
void | oval_component_set_type (struct oval_component *component, oval_component_type_t type) |
Set type of component Oval_component->type. | |
void | oval_component_set_object (struct oval_component *, struct oval_object *object) |
set attribute Oval_component_object->object. | |
void | oval_component_set_object_field (struct oval_component *, char *field) |
set attribute Oval_component_object->object_field. | |
void | oval_component_set_variable (struct oval_component *, struct oval_variable *variable) |
set attribute Oval_component_object->variable. | |
void | oval_component_add_function_component (struct oval_component *, struct oval_component *) |
set attribute Oval_component_object->object_field. | |
void | oval_component_set_arithmetic_operation (struct oval_component *, oval_arithmetic_operation_t) |
void | oval_component_set_prefix (struct oval_component *, char *) |
void | oval_component_set_suffix (struct oval_component *, char *) |
void | oval_component_set_split_delimiter (struct oval_component *, char *) |
void | oval_component_set_substring_start (struct oval_component *, int) |
void | oval_component_set_substring_length (struct oval_component *, int) |
void | oval_component_set_timedif_format_1 (struct oval_component *, oval_datetime_format_t) |
void | oval_component_set_timedif_format_2 (struct oval_component *, oval_datetime_format_t) |
void | oval_component_set_regex_pattern (struct oval_component *, char *) |
void | oval_component_set_literal_value (struct oval_component *, struct oval_value *) |
Getters | |
oval_component_type_t | oval_component_get_type (struct oval_component *) |
Returns attribute Oval_component->type. | |
struct oval_object * | oval_component_get_object (struct oval_component *) |
Returns attribute Oval_component_object->object. | |
char * | oval_component_get_object_field (struct oval_component *) |
Returns attribute Oval_component_object->object_field. | |
struct oval_variable * | oval_component_get_variable (struct oval_component *) |
Returns attribute Oval_component_variable->variable. | |
struct oval_component_iterator * | oval_component_get_function_components (struct oval_component *) |
Returns attribute Oval_function->components. | |
oval_arithmetic_operation_t | oval_component_get_arithmetic_operation (struct oval_component *) |
Returns attribute Oval_function_ARITHMETIC->arithmetic_operation. | |
char * | oval_component_get_prefix (struct oval_component *) |
Returns attribute Oval_function_BEGIN->prefix. | |
char * | oval_component_get_suffix (struct oval_component *) |
Returns attribute Oval_function_END->suffix. | |
char * | oval_component_get_split_delimiter (struct oval_component *) |
Returns attribute Oval_function_SPLIT->delimiter. | |
int | oval_component_get_substring_start (struct oval_component *) |
Returns attribute Oval_function_SUBSTRING->start. | |
int | oval_component_get_substring_length (struct oval_component *) |
Returns attribute Oval_function_SUBSTRING->length. | |
oval_datetime_format_t | oval_component_get_timedif_format_1 (struct oval_component *) |
Returns attribute Oval_function_TIMEDIF->timedif_format_1. | |
oval_datetime_format_t | oval_component_get_timedif_format_2 (struct oval_component *) |
Returns attribute Oval_function_TIMEDIF->timedif_format_2. | |
char * | oval_component_get_regex_pattern (struct oval_component *) |
Returns attribute Oval_function_REGEX_CAPTURE->pattern. | |
struct oval_value * | oval_component_get_literal_value (struct oval_component *) |
Returns attribute Oval_literal->literal. | |
bool | oval_component_is_locked (struct oval_component *component) |
return true if the component instance is locked. | |
Evaluators | |
bool | oval_component_is_valid (struct oval_component *) |
Returns true if the Oval_component is valid. | |
Data Fields | |
struct oval_definition_model * | model |
oval_component_type_t | type |
OVAL variable component Oval_component instances specify evaluation constraints on local variables (see oval_variable_get_type).