public class PrimaryData
extends java.lang.Object
Class for storing HIBC LIC primary data.
Constructor and Description |
---|
PrimaryData() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified
PrimaryData value. |
java.lang.String |
getLabelerIdentificationCode()
Identifies date of labeler identification code.
|
java.lang.String |
getProductOrCatalogNumber()
Identifies product or catalog number.
|
int |
getUnitOfMeasureID()
Identifies unit of measure ID.
|
int |
hashCode()
Returns the hash code for this instance.
|
void |
parseFromString(java.lang.String primaryDataCodetext)
Instantiates primary data from string format according HIBC LIC specification.
|
void |
setLabelerIdentificationCode(java.lang.String value)
Identifies date of labeler identification code.
|
void |
setProductOrCatalogNumber(java.lang.String value)
Identifies product or catalog number.
|
void |
setUnitOfMeasureID(int value)
Identifies unit of measure ID.
|
java.lang.String |
toString()
Converts data to string format according HIBC LIC specification.
|
public java.lang.String getLabelerIdentificationCode()
Identifies date of labeler identification code. Labeler identification code must be 4 symbols alphanumeric string, with first character always being alphabetic.
public void setLabelerIdentificationCode(java.lang.String value)
Identifies date of labeler identification code. Labeler identification code must be 4 symbols alphanumeric string, with first character always being alphabetic.
public java.lang.String getProductOrCatalogNumber()
Identifies product or catalog number. Product or catalog number must be alphanumeric string up to 18 sybmols length.
public void setProductOrCatalogNumber(java.lang.String value)
Identifies product or catalog number. Product or catalog number must be alphanumeric string up to 18 sybmols length.
public int getUnitOfMeasureID()
Identifies unit of measure ID. Unit of measure ID must be integer value from 0 to 9.
public void setUnitOfMeasureID(int value)
Identifies unit of measure ID. Unit of measure ID must be integer value from 0 to 9.
public java.lang.String toString()
Converts data to string format according HIBC LIC specification.
toString
in class java.lang.Object
public void parseFromString(java.lang.String primaryDataCodetext)
Instantiates primary data from string format according HIBC LIC specification.
primaryDataCodetext
- Formatted string.public boolean equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified PrimaryData
value.
equals
in class java.lang.Object
obj
- An PrimaryData
value to compare to this instance.<b>true</b>
if obj has the same value as this instance; otherwise, <b>false</b>
.public int hashCode()
Returns the hash code for this instance.
hashCode
in class java.lang.Object