Container#

class ansys.scade.pyalmgw.documents.Container(*args, **kwargs)#

Bases: Element

Base class for ReqDocument, Section, and Requirement classes.

Container of hierarchical elements.

Overview#

is_empty

Return whether a container does not contain requirements.

iter_requirements

Iterate through the contained requirements.

parse

Parse the current object from an XML element.

children

Return the contained elements to be serialized as a dictionary.

Import detail#

from ansys.scade.pyalmgw.documents import Container

Property detail#

property Container.children: Dict[str, List[List[ReqObject]]]#

Return the contained elements to be serialized as a dictionary.

Attribute detail#

Container.requirements: List[Requirement] = []#
Container.sections: List[Section] = []#

Method detail#

Container.is_empty() bool#

Return whether a container does not contain requirements.

Container.iter_requirements() Generator[Requirement, Any, Any]#

Iterate through the contained requirements.

Container.parse(tree: Any)#

Parse the current object from an XML element.