PrimaryData
PrimaryData class
Module: aspose_barcode.complex_barcode.primary_data
Class for storing HIBC LIC primary data.
Constructors
| Name | Description |
|---|---|
| init |
Methods
| Name | Return Type | Static | Description |
|---|---|---|---|
| eq | bool | No | Returns a value indicating whether this instance is equal to a specified PrimaryData value. |
| hash | int | No | Returns the hash code for the current instance. |
| str | str | No | Converts data to string format according HIBC LIC specification. |
| parse_from_string | None | No | Instantiates primary data from string format according HIBC LIC specification. |
Properties
| Name | Type | Description |
|---|---|---|
| labeler_identification_code | Optional[str] | Gets the identification date of the labeler identification code. Labeler identification code must be 4 symbols alphanumeric string, with first character always being alphabetic. |
| product_or_catalog_number | Optional[str] | Identifies product or catalog number. |
| unit_of_measure_id | int | Identifies unit of measure ID. |
PrimaryData Constructor
__init__(self)
PrimaryData.eq
__eq__(self, PrimaryData other) -> bool
Returns a value indicating whether this instance is equal to a specified PrimaryData value.
| Parameter | Type | Description |
|---|---|---|
other | PrimaryData |
Return Type: bool — True if obj has the same value as this instance; otherwise, False.
PrimaryData.hash
__hash__(self) -> int
Returns the hash code for the current instance.
Return Type: int — A hash code for the current object.
PrimaryData.str
__str__(self) -> str
Converts data to string format according HIBC LIC specification.
Return Type: str — Formatted string.
PrimaryData.parse_from_string
parse_from_string(self, str primary_data_codetext)
Instantiates primary data from string format according HIBC LIC specification.
| Parameter | Type | Description |
|---|---|---|
primary_data_codetext | str |
PrimaryData.labeler_identification_code
Type: Optional[str]
Gets the identification date of the labeler identification code. Labeler identification code must be 4 symbols alphanumeric string, with first character always being alphabetic.
Sets the identification date for the labeler code. Labeler identification code must be 4 symbols alphanumeric string, with first character always being alphabetic.
| Parameter | Type | Description |
|---|---|---|
value | str |
PrimaryData.product_or_catalog_number
Type: Optional[str]
Identifies product or catalog number.
Identifies product or catalog number.
| Parameter | Type | Description |
|---|---|---|
value | str |
PrimaryData.unit_of_measure_id
Type: int
Identifies unit of measure ID.
Identifies unit of measure ID.
| Parameter | Type | Description |
|---|---|---|
value | int |