Class SecondaryAndAdditionalData
Class for storing HIBC LIC secondary and additional data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a value indicating whether this instance is equal to a specifiedSecondaryAndAdditionalDatavalue.Identifies date of manufacture.Identifies expiry date.Identifies expiry date format.Identifies lot or batch number.intIdentifies quantity, must be integer value from 0 to 500.Identifies serial number.inthashCode()Returns the hash code for this instance.voidparseFromString(String secondaryDataCodetext) Instantiates secondary and additional supplemental data from string format according HIBC LIC specification.voidIdentifies date of manufacture.voidsetExpiryDate(LocalDateTime value) Identifies expiry date.voidIdentifies expiry date format.voidsetLotNumber(String value) Identifies lot or batch number.voidsetQuantity(int value) Identifies quantity, must be integer value from 0 to 500.voidsetSerialNumber(String value) Identifies serial number.toString()Converts data to string format according HIBC LIC specification.
-
Constructor Details
-
SecondaryAndAdditionalData
public SecondaryAndAdditionalData()
-
-
Method Details
-
getExpiryDateFormat
Identifies expiry date format.
-
setExpiryDateFormat
Identifies expiry date format.
-
getExpiryDate
Identifies expiry date. Will be used if ExpiryDateFormat is not set to None.
-
setExpiryDate
Identifies expiry date. Will be used if ExpiryDateFormat is not set to None.
-
getLotNumber
Identifies lot or batch number. Lot/batch number must be alphanumeric string with up to 18 sybmols length. .
-
setLotNumber
Identifies lot or batch number. Lot/batch number must be alphanumeric string with up to 18 sybmols length. .
-
getSerialNumber
Identifies serial number. Serial number must be alphanumeric string up to 18 sybmols length.
-
setSerialNumber
Identifies serial number. Serial number must be alphanumeric string up to 18 sybmols length.
-
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
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
Converts data to string format according HIBC LIC specification.
-
parseFromString
Instantiates secondary and additional supplemental data from string format according HIBC LIC specification.
- Parameters:
secondaryDataCodetext- Formatted string.
-
equals
Returns a value indicating whether this instance is equal to a specified
SecondaryAndAdditionalDatavalue. -
hashCode
public int hashCode()Returns the hash code for this instance.
-