Class SecondaryAndAdditionalData

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

public class SecondaryAndAdditionalData extends Object

Class for storing HIBC LIC secondary and additional data.

  • Constructor Details

    • SecondaryAndAdditionalData

      public SecondaryAndAdditionalData()
  • Method Details

    • getExpiryDateFormat

      public HIBCLICDateFormat getExpiryDateFormat()

      Identifies expiry date format.

    • setExpiryDateFormat

      public void setExpiryDateFormat(HIBCLICDateFormat value)

      Identifies expiry date format.

    • getExpiryDate

      public LocalDateTime getExpiryDate()

      Identifies expiry date. Will be used if ExpiryDateFormat is not set to None.

    • setExpiryDate

      public void setExpiryDate(LocalDateTime value)

      Identifies expiry date. Will be used if ExpiryDateFormat is not set to None.

    • getLotNumber

      public String getLotNumber()

      Identifies lot or batch number. Lot/batch number must be alphanumeric string with up to 18 sybmols length. .

    • setLotNumber

      public void setLotNumber(String value)

      Identifies lot or batch number. Lot/batch number must be alphanumeric string with up to 18 sybmols length. .

    • getSerialNumber

      public String getSerialNumber()

      Identifies serial number. Serial number must be alphanumeric string up to 18 sybmols length.

    • setSerialNumber

      public void setSerialNumber(String value)

      Identifies serial number. Serial number must be alphanumeric string up to 18 sybmols length.

    • getDateOfManufacture

      public LocalDateTime getDateOfManufacture()

      Identifies date of manufacture. Date of manufacture can be set to DateTime.MinValue in order not to use this field. Default value: DateTime.MinValue

    • setDateOfManufacture

      public void setDateOfManufacture(LocalDateTime value)

      Identifies date of manufacture. Date of manufacture can be set to DateTime.MinValue in order not to use this field. Default value: DateTime.MinValue

    • getQuantity

      public int getQuantity()

      Identifies quantity, must be integer value from 0 to 500. Quantity can be set to -1 in order not to use this field. Default value: -1

    • setQuantity

      public void setQuantity(int value)

      Identifies quantity, must be integer value from 0 to 500. Quantity can be set to -1 in order not to use this field. Default value: -1

    • 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 secondaryDataCodetext)

      Instantiates secondary and additional supplemental data from string format according HIBC LIC specification.

      Parameters:
      secondaryDataCodetext - Formatted string.
    • equals

      public boolean equals(Object obj)

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

      Overrides:
      equals in class Object
      Parameters:
      obj - An SecondaryAndAdditionalData 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.