Class PrimaryData
Class for storing HIBC LIC primary data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a value indicating whether this instance is equal to a specifiedPrimaryDatavalue.Identifies date of labeler identification code.Identifies product or catalog number.intIdentifies unit of measure ID.inthashCode()Returns the hash code for this instance.voidparseFromString(String primaryDataCodetext) Instantiates primary data from string format according HIBC LIC specification.voidIdentifies date of labeler identification code.voidsetProductOrCatalogNumber(String value) Identifies product or catalog number.voidsetUnitOfMeasureID(int value) Identifies unit of measure ID.toString()Converts data to string format according HIBC LIC specification.
-
Constructor Details
-
PrimaryData
public PrimaryData()
-
-
Method Details
-
getLabelerIdentificationCode
Identifies date of labeler identification code. Labeler identification code must be 4 symbols alphanumeric string, with first character always being alphabetic.
-
setLabelerIdentificationCode
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.
-
setProductOrCatalogNumber
Identifies product or catalog number. Product or catalog number must be alphanumeric string up to 18 sybmols length.
-
getUnitOfMeasureID
public int getUnitOfMeasureID()Identifies unit of measure ID. Unit of measure ID must be integer value from 0 to 9.
-
setUnitOfMeasureID
public void setUnitOfMeasureID(int value) 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.
-
parseFromString
Instantiates primary data from string format according HIBC LIC specification.
- Parameters:
primaryDataCodetext- Formatted string.
-
equals
Returns a value indicating whether this instance is equal to a specified
PrimaryDatavalue. -
hashCode
public int hashCode()Returns the hash code for this instance.
-