
## PrimaryData class

Class for storing HIBC LIC primary data.

```js
new PrimaryData()
```

## Methods

| Name | Description |
| --- | --- |
| [equals(obj)](#equals) | Returns a value indicating whether this instance is equal to a specified `PrimaryData` value. |
| [getLabelerIdentificationCode()](#getlabeleridentificationcode) | Identifies date of labeler identification code. Labeler identification code must be 4 symbols alphanumeric string, with  |
| [getProductOrCatalogNumber()](#getproductorcatalognumber) | Identifies product or catalog number. Product or catalog number must be alphanumeric string up to 18 sybmols length. |
| [getUnitOfMeasureID()](#getunitofmeasureid) | Identifies unit of measure ID. Unit of measure ID must be integer value from 0 to 9. |
| [hashCode()](#hashcode) | Returns the hash code for this instance. |
| [parseFromString(primaryDataCodetext)](#parsefromstring) | Instantiates primary data from string format according HIBC LIC specification. |
| [setLabelerIdentificationCode()](#setlabeleridentificationcode) | Identifies date of labeler identification code. Labeler identification code must be 4 symbols alphanumeric string, with  |
| [setProductOrCatalogNumber()](#setproductorcatalognumber) | Identifies product or catalog number. Product or catalog number must be alphanumeric string up to 18 sybmols length. |
| [setUnitOfMeasureID()](#setunitofmeasureid) | Identifies unit of measure ID. Unit of measure ID must be integer value from 0 to 9. |
| [toString()](#tostring) | Converts data to string format according HIBC LIC specification. |

### equals(obj) {#equals}

Returns a value indicating whether this instance is equal to a specified `PrimaryData` value.

| Parameter | Description |
| --- | --- |
| obj | An `PrimaryData` value to compare to this instance. |

**Returns:** `true ` if obj has the same value as this instance; otherwise, `false `.

### getLabelerIdentificationCode() {#getlabeleridentificationcode}

Identifies date of labeler identification code. Labeler identification code must be 4 symbols alphanumeric string, with first character always being alphabetic.

### getProductOrCatalogNumber() {#getproductorcatalognumber}

Identifies product or catalog number. Product or catalog number must be alphanumeric string up to 18 sybmols length.

### getUnitOfMeasureID() {#getunitofmeasureid}

Identifies unit of measure ID. Unit of measure ID must be integer value from 0 to 9.

### hashCode() {#hashcode}

Returns the hash code for this instance.

**Returns:** A 32-bit signed integer hash code.

### parseFromString(primaryDataCodetext) {#parsefromstring}

Instantiates primary data from string format according HIBC LIC specification.

| Parameter | Description |
| --- | --- |
| primaryDataCodetext | Formatted string. |

### setLabelerIdentificationCode() {#setlabeleridentificationcode}

Identifies date of labeler identification code. Labeler identification code must be 4 symbols alphanumeric string, with first character always being alphabetic.

### setProductOrCatalogNumber() {#setproductorcatalognumber}

Identifies product or catalog number. Product or catalog number must be alphanumeric string up to 18 sybmols length.

### setUnitOfMeasureID() {#setunitofmeasureid}

Identifies unit of measure ID. Unit of measure ID must be integer value from 0 to 9.

### toString() {#tostring}

Converts data to string format according HIBC LIC specification.

**Returns:** Formatted string.
