Package org.openwms.common.comm.osip.upd
Class UpdateMessage.Builder
java.lang.Object
org.openwms.common.comm.osip.upd.UpdateMessage.Builder
- Enclosing class:
UpdateMessage
UpdateMessage builder static inner class.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate Dateprivate Stringprivate final UpdateFieldLengthProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withActualLocation(String actualLocation) withBarcode(String barcode) Add anBarcodeto the message.withCreateDate(String createDate, String pattern) Add the date of creation in an expected format.withErrorCode(String errorCode) Add an error code.
-
Field Details
-
barcode
-
actualLocation
-
errorCode
-
created
-
provider
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withBarcode
Add anBarcodeto the message.- Parameters:
barcode- The barcode- Returns:
- The builder
-
withActualLocation
-
withErrorCode
Add an error code.- Parameters:
errorCode- The error code- Returns:
- The builder
-
withCreateDate
public UpdateMessage.Builder withCreateDate(String createDate, String pattern) throws ParseException Add the date of creation in an expected format.- Parameters:
createDate- The creation datepattern- The datetime pattern used for the date- Returns:
- The builder
- Throws:
ParseException- with invalid pattern
-
build
-