Oval_component get methods. More...
Functions | |
bool | oval_component_is_locked (struct oval_component *component) |
return true if the component instance is locked. | |
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_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. |
Oval_component get methods.
oval_arithmetic_operation_t oval_component_get_arithmetic_operation | ( | struct oval_component * | ) |
Returns attribute Oval_function_ARITHMETIC->arithmetic_operation.
IF component->type <> OVAL_FUNCTION_ARITHMETIC, this method shall return OVAL_ARITHMETIC_UNKNOWN.
struct oval_component_iterator* oval_component_get_function_components | ( | struct oval_component * | ) | [read] |
Returns attribute Oval_function->components.
IF component->type < OVAL_COMPONENT_FUNCTION, this method shall return NULL.
struct oval_value* oval_component_get_literal_value | ( | struct oval_component * | ) | [read] |
Returns attribute Oval_literal->literal.
IF component->type <> OVAL_COMPONENT_LITERAL, this method shall return NULL
struct oval_object* oval_component_get_object | ( | struct oval_component * | ) | [read] |
Returns attribute Oval_component_object->object.
IF component->type <> OVAL_COMPONENT_OBJECTREF, this method shall return NULL.
char* oval_component_get_object_field | ( | struct oval_component * | ) |
Returns attribute Oval_component_object->object_field.
IF component->type <> OVAL_COMPONENT_OBJECTREF, this method shall return NULL.
char* oval_component_get_regex_pattern | ( | struct oval_component * | ) |
Returns attribute Oval_function_REGEX_CAPTURE->pattern.
IF component->type <> OVAL_FUNCTION_REGEX_CAPTURE, this method shall return NULL
char* oval_component_get_split_delimiter | ( | struct oval_component * | ) |
Returns attribute Oval_function_SPLIT->delimiter.
IF component->type <> OVAL_FUNCTION_SPLIT, this method shall return NULL
int oval_component_get_substring_length | ( | struct oval_component * | ) |
Returns attribute Oval_function_SUBSTRING->length.
IF component->type <> OVAL_FUNCTION_SUBSTRING, this method shall return 0
int oval_component_get_substring_start | ( | struct oval_component * | ) |
Returns attribute Oval_function_SUBSTRING->start.
IF component->type <> OVAL_FUNCTION_SUBSTRING, this method shall return 0
char* oval_component_get_suffix | ( | struct oval_component * | ) |
Returns attribute Oval_function_END->suffix.
IF component->type <> OVAL_FUNCTION_END, this method shall return NULL
oval_datetime_format_t oval_component_get_timedif_format_1 | ( | struct oval_component * | ) |
Returns attribute Oval_function_TIMEDIF->timedif_format_1.
IF component->type <> OVAL_FUNCTION_TIMEDIF, this method shall return OVAL_TIMEDATE_UNKNOWN
oval_datetime_format_t oval_component_get_timedif_format_2 | ( | struct oval_component * | ) |
Returns attribute Oval_function_TIMEDIF->timedif_format_2.
IF component->type <> OVAL_FUNCTION_TIMEDIF, this method shall return OVAL_TIMEDATE_UNKNOWN
oval_component_type_t oval_component_get_type | ( | struct oval_component * | ) |
Returns attribute Oval_component->type.
struct oval_variable* oval_component_get_variable | ( | struct oval_component * | ) | [read] |
Returns attribute Oval_component_variable->variable.
IF component->type <> OVAL_COMPONENT_VARREF, this method shall return NULL.
bool oval_component_is_locked | ( | struct oval_component * | component | ) |
return true if the component instance is locked.
The state of a locked instance cannot be changed.