launch_xml.entity module

Module for Entity class.

class launch_xml.entity.Entity(*args: Any, **kwargs: Any)

Bases: Entity

Single item in the intermediate XML front_end representation.

assert_entity_completely_parsed()
property children: List[Entity]

Get the Entity’s children.

get_attr(name: str, *, data_type: launch.utilities.type_utils.AllowedTypesType = <class 'str'>, optional: bool = False, can_be_str: bool = True) launch.utilities.type_utils.AllowedValueType | List[Entity] | None

Access an attribute of the entity.

See launch.frontend.Entity.get_attr(). launch_xml uses type coercion. If coercion fails, ValueError will be raised.

property parent: Entity | None

Get Entity parent.

property type_name: str

Get Entity type.