Alteration¤
Alteration
dataclass
¤
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 |
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 ¤
Convert the Alteration class into an XML element.
Returns:
Type | Description |
---|---|
Element[str]
|
The Alteration as an XML element. |