PrimaryData
Source: ComplexBarcode.
Class for storing HIBC LIC primary data.
new PrimaryData()
Methods
equals(obj)
Returns a value indicating whether this instance is equal to a specified {@code PrimaryData} value.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
obj |
|
|
An {@code PrimaryData} value to compare to this instance. |
- Returns
-
{@code true} if obj has the same value as this instance; otherwise, {@code false}.
getLabelerIdentificationCode()
Identifies date of labeler identification code. Labeler identification code must be 4 symbols alphanumeric string, with first character always being alphabetic.
getProductOrCatalogNumber()
Identifies product or catalog number. Product or catalog number must be alphanumeric string up to 18 sybmols length.
getUnitOfMeasureID()
Identifies unit of measure ID. Unit of measure ID must be integer value from 0 to 9.
hashCode()
Returns the hash code for this instance.
- Returns
-
A 32-bit signed integer hash code.
parseFromString(primaryDataCodetext)
Instantiates primary data from string format according HIBC LIC specification.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
primaryDataCodetext |
|
|
Formatted string. |
setLabelerIdentificationCode()
Identifies date of labeler identification code. Labeler identification code must be 4 symbols alphanumeric string, with first character always being alphabetic.
setProductOrCatalogNumber()
Identifies product or catalog number. Product or catalog number must be alphanumeric string up to 18 sybmols length.
setUnitOfMeasureID()
Identifies unit of measure ID. Unit of measure ID must be integer value from 0 to 9.
toString()
Converts data to string format according HIBC LIC specification.
- Returns
-
Formatted string.