Class PrimaryData

java.lang.Object
com.aspose.barcode.complexbarcode.PrimaryData

public class PrimaryData extends Object

Class for storing HIBC LIC primary data.

  • Constructor Details

    • PrimaryData

      public PrimaryData()
  • Method Details

    • getLabelerIdentificationCode

      public String getLabelerIdentificationCode()

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

    • setLabelerIdentificationCode

      public void setLabelerIdentificationCode(String value)

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

    • getProductOrCatalogNumber

      public String getProductOrCatalogNumber()

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

    • setProductOrCatalogNumber

      public void setProductOrCatalogNumber(String value)

      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

      public String toString()

      Converts data to string format according HIBC LIC specification.

      Overrides:
      toString in class Object
      Returns:
      Formatted string.
    • parseFromString

      public void parseFromString(String primaryDataCodetext)

      Instantiates primary data from string format according HIBC LIC specification.

      Parameters:
      primaryDataCodetext - Formatted string.
    • equals

      public boolean equals(Object obj)

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

      Overrides:
      equals in class Object
      Parameters:
      obj - An PrimaryData value to compare to this instance.
      Returns:
      <b>true</b> if obj has the same value as this instance; otherwise, <b>false</b>.
    • hashCode

      public int hashCode()

      Returns the hash code for this instance.

      Overrides:
      hashCode in class Object
      Returns:
      A 32-bit signed integer hash code.