PrimaryData

PrimaryData class

Module: aspose_barcode.complex_barcode.primary_data

Class for storing HIBC LIC primary data.

Constructors

NameDescription
init

Methods

NameReturn TypeStaticDescription
eqboolNoReturns a value indicating whether this instance is equal to a specified PrimaryData value.
hashintNoReturns the hash code for the current instance.
strstrNoConverts data to string format according HIBC LIC specification.
parse_from_stringNoneNoInstantiates primary data from string format according HIBC LIC specification.

Properties

NameTypeDescription
labeler_identification_codeOptional[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_numberOptional[str]Identifies product or catalog number.
unit_of_measure_idintIdentifies 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.

ParameterTypeDescription
otherPrimaryData

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.

ParameterTypeDescription
primary_data_codetextstr

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.

ParameterTypeDescription
valuestr

PrimaryData.product_or_catalog_number

Type: Optional[str]

Identifies product or catalog number.

Identifies product or catalog number.

ParameterTypeDescription
valuestr

PrimaryData.unit_of_measure_id

Type: int

Identifies unit of measure ID.

Identifies unit of measure ID.

ParameterTypeDescription
valueint