Skip to content

Alteration¤

Alteration dataclass ¤

Alteration(date: date, details: str, performed_by: str)

Represents the alteration element in an equipment register.

Parameters:

Name Type Description Default
date date

The date that the alteration was performed.

required
details str

The details of the alteration.

required
performed_by str

The person or company that performed the alteration.

required

date instance-attribute ¤

date: date

The date that the alteration was performed.

details instance-attribute ¤

details: str

The details of the alteration.

performed_by instance-attribute ¤

performed_by: str

The person or company that performed the alteration.

from_xml classmethod ¤

from_xml(element: Element[str]) -> Alteration

Convert an XML element into an Alteration instance.

Parameters:

Name Type Description Default
element Element[str]

An alteration XML element from an equipment register.

required

Returns:

Type Description
Alteration

The Alteration instance.

to_xml ¤

to_xml() -> Element[str]

Convert the Alteration class into an XML element.

Returns:

Type Description
Element[str]

The Alteration as an XML element.