const _MwWrapper = require("../_mwbridge/_mw-wrapper.js");
const { MwPrimaryData } = require("../_mwbridge/_mw-bridge.js");
/**
* <p>
* Class for storing HIBC LIC primary data.
* </p>
*/
class PrimaryData extends _MwWrapper
{
constructor()
{
super(new MwPrimaryData());
}
static _fromMwObject(java_class)
{
let obj = new PrimaryData();
obj.setJavaClass(java_class);
return obj;
}
/**
* <p>
* Identifies date of labeler identification code.<br>
* Labeler identification code must be 4 symbols alphanumeric string, with first character always being alphabetic.
* </p>
*/
getLabelerIdentificationCode()
{
return this.getJavaClass().getLabelerIdentificationCodeSync();
}
/**
* <p>
* Identifies date of labeler identification code.<br>
* Labeler identification code must be 4 symbols alphanumeric string, with first character always being alphabetic.
* </p>
*/
setLabelerIdentificationCode(value)
{
this.getJavaClass().setLabelerIdentificationCodeSync(value);
}
/**
* <p>
* Identifies product or catalog number. Product or catalog number must be alphanumeric string up to 18 sybmols length.
* </p>
*/
getProductOrCatalogNumber()
{
return this.getJavaClass().getProductOrCatalogNumberSync();
}
/**
* <p>
* Identifies product or catalog number. Product or catalog number must be alphanumeric string up to 18 sybmols length.
* </p>
*/
setProductOrCatalogNumber(value)
{
this.getJavaClass().setProductOrCatalogNumberSync(value);
}
/**
* <p>
* Identifies unit of measure ID. Unit of measure ID must be integer value from 0 to 9.
* </p>
*/
getUnitOfMeasureID()
{
return this.getJavaClass().getUnitOfMeasureIDSync();
}
/**
* <p>
* Identifies unit of measure ID. Unit of measure ID must be integer value from 0 to 9.
* </p>
*/
setUnitOfMeasureID(value)
{
this.getJavaClass().setUnitOfMeasureIDSync(value);
}
/**
* <p>
* Converts data to string format according HIBC LIC specification.
* </p>
*
* @return Formatted string.
*/
toString()
{
return this.getJavaClass().toStringSync();
}
/**
* <p>
* Instantiates primary data from string format according HIBC LIC specification.
* </p>
*
* @param primaryDataCodetext Formatted string.
*/
parseFromString(primaryDataCodetext)
{
this.getJavaClass().parseFromStringSync(primaryDataCodetext);
}
/**
* <p>
* Returns a value indicating whether this instance is equal to a specified {@code PrimaryData} value.
* </p>
*
* @param obj An {@code PrimaryData} value to compare to this instance.
* @return {@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
*/
equals(obj)
{
return this.getJavaClass().equalsSync(obj.getJavaClass());
}
/**
* <p>
* Returns the hash code for this instance.
* </p>
*
* @return A 32-bit signed integer hash code.
*/
hashCode()
{
return this.getJavaClass().hashCodeSync();
}
_initializeWrapperMembers()
{}
}
module.exports = PrimaryData