as2fm.as2fm_common.common

Common functionalities used throughout the toolchain.

Functions

check_value_type_compatible(value, field_type)

Check if the value is compatible with the field type.

get_default_expression_for_type(field_type)

Generate a default expression for a field type.

is_array_type(field_type)

Check if the field type is an array type.

is_comment(element)

Check if an element is a comment.

remove_namespace(tag)

If a tag has a namespace, remove it.

string_to_value(value_str, value_type)

Convert a string to a value of the desired type.

value_to_string(value)

Convert a value to a string.

value_to_type(value)

Convert a value to a type.