DigitalReport¤
DigitalReport
dataclass
¤
DigitalReport(
url: str,
format: DigitalFormat,
id: str,
sha256: str,
attributes: dict[str, str] = dict(),
comment: str = "",
)
Represents the digitalReport element in an equipment register.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
url
|
str
|
The location of the digital report. The syntax follows RFC 1738
|
required |
format
|
DigitalFormat
|
The format of the digital calibration report. |
required |
id
|
str
|
The report identification number. |
required |
sha256
|
str
|
The SHA-256 checksum of the digital report. |
required |
attributes
|
dict[str, str]
|
XML attributes associated with the |
dict()
|
comment
|
str
|
A comment to associate with the digital report. |
''
|
attributes
class-attribute
instance-attribute
¤
XML attributes associated with the <url>
element.
comment
class-attribute
instance-attribute
¤
comment: str = ''
A comment associated with the digital report.
url
instance-attribute
¤
url: str
The location of the digital report. The syntax follows RFC 1738
scheme:scheme-specific-part
. If scheme:
is not specified, it is assumed to be file:
.
from_xml
classmethod
¤
from_xml(element: Element[str]) -> DigitalReport
Convert an XML element into a DigitalReport instance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
element
|
Element[str]
|
A digitalReport XML element from an equipment register. |
required |
Returns:
Type | Description |
---|---|
DigitalReport
|
The DigitalReport instance. |
to_xml ¤
Convert the DigitalReport class into an XML element.
Returns:
Type | Description |
---|---|
Element[str]
|
The DigitalReport as an XML element. |
DigitalFormat ¤
Bases: Enum
Represents the digitalFormatEnumerationString enumeration in an equipment register.
Attributes:
Name | Type | Description |
---|---|---|
MSL_PDF |
str
|
|
PTB_DCC |
str
|
|