Getters
[Oval_component]

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_objectoval_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_variableoval_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_valueoval_component_get_literal_value (struct oval_component *)
 Returns attribute Oval_literal->literal.

Detailed Description

Oval_component get methods.


Function Documentation

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.

See also:
oval_component_add_function_component
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.

See also:
oval_component_add_function_component
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

Note:
applications should not free the Oval_value returned by this method
See also:
oval_component_set_literal_value
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.

Note:
applications should not free the Oval_object returned by this method
See also:
oval_component_set_object
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.

Note:
applications should not free the char* returned by this method
See also:
oval_component_set_object_field
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

Note:
applications should not free the char* returned by this method
See also:
oval_component_set_regex_pattern
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

Note:
applications should not free the char* returned by this method
See also:
oval_component_set_split_delimiter
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

See also:
oval_component_set_substring_length
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

See also:
oval_component_set_substring_start
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

Note:
applications should not free the char* returned by this method
See also:
oval_component_set_suffix
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

See also:
oval_component_set_timedif_format_1
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

See also:
oval_component_set_timedif_format_1
oval_component_type_t oval_component_get_type ( struct oval_component  ) 

Returns attribute Oval_component->type.

See also:
oval_component_new
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.

Note:
applications should not free the Oval_variable returned by this method
See also:
oval_component_set_variable
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.


Generated on 4 Jan 2010 for Open SCAP Library by  doxygen 1.6.1