ReqObject
#
- class ansys.scade.pyalmgw.documents.ReqObject(owner: ReqObject | None)#
Top level class for Requirements Document.
Defines the interface for XML serialization and parsing.
Overview#
Return the attributes to be serialized as a dictionary. |
|
Return the contained elements to be serialized as a dictionary. |
Import detail#
from ansys.scade.pyalmgw.documents import ReqObject
Property detail#
Attribute detail#
- ReqObject.ns#
- ReqObject.owner#
- ReqObject.scade_req_ns = 'http://www.esterel-technologies.com/scade/lifecycle/almgateway/scade_req/1'#
- ReqObject.xml_tag = ''#
Method detail#
- ReqObject.parse(elem: Any)#
Parse the current object from an XML element.
- Parameters:
- elem
Any
XML element to parse.
- elem
- ReqObject.serialize(parent=None) Any #
Add the element to the XML DOM.
- Parameters:
- parent
Any
Parent element or None if the element to create is the root element.
- parent
- Returns:
Any
Corresponding XML element.