@staticmethod<EOL><INDENT>def import_diagram_and_plane_attributes(diagram_attributes, plane_attributes, diagram_element, plane_element):<DEDENT>
diagram_attributes[consts.Consts.id] = diagram_element.getAttribute(consts.Consts.id)<EOL>diagram_attributes[consts.Consts.name] = diagram_element.getAttribute(consts.Consts.name)if diagram_element.hasAttribute(consts.Consts.name) else "<STR_LIT>"<EOL>plane_attributes[consts.Consts.id] = plane_element.getAttribute(consts.Consts.id)<EOL>plane_attributes[consts.Consts.bpmn_element] = plane_element.getAttribute(consts.Consts.bpmn_element)<EOL>
Adds attributes of BPMN diagram and plane elements to appropriate
fields diagram_attributes and plane_attributes.
Diagram inner representation contains following diagram element attributes:

- id - assumed to be required in XML file, even thought BPMN 2.0 schema doesn't say so,
- name - optional parameter, empty string by default,

Diagram inner representation contains following plane element attributes:

- id - assumed to be required in XML file, even thought BPMN 2.0 schema doesn't say so,
- bpmnElement - assumed to be required in XML file, even thought BPMN 2.0 schema doesn't say so,

:param diagram_attributes: dictionary that holds attribute values for imported 'BPMNDiagram' element,
:param plane_attributes: dictionary that holds attribute values for imported 'BPMNPlane' element,
:param diagram_element: object representing a BPMN XML 'diagram' element,
:param plane_element: object representing a BPMN XML 'plane' element.