Package org.openwms.common.comm.osip.res
Class ResponseMessage.Builder
java.lang.Object
org.openwms.common.comm.osip.res.ResponseMessage.Builder
- Enclosing class:
ResponseMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.openwms.common.comm.spi.FieldLengthProviderprivate final ResponseMessage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withActualLocation(String actualLocation) Add an actualLocationby the given uniqueLocationPkin an expected format like AAAAAAA/BBBBBB/....withBarcode(String barcode) withCreateDate(String createDate, String pattern) withErrorCode(String errorCode) withTargetLocation(String targetLocation) Add an targetLocationby the given uniqueLocationPkin an expected format like AAAAAAA/BBBBBB/....withTargetLocationGroup(String targetLocationGroup)
-
Field Details
-
responseMessage
-
provider
private final org.openwms.common.comm.spi.FieldLengthProvider provider
-
-
Constructor Details
-
Builder
public Builder(org.openwms.common.comm.spi.FieldLengthProvider provider)
-
-
Method Details
-
withBarcode
-
withActualLocation
Add an actualLocationby the given uniqueLocationPkin an expected format like AAAAAAA/BBBBBB/.... Where the number of digits each coordinate has and the number of coordinates at all is defined by theFieldLengthProvider.- Parameters:
actualLocation- The String representation ofLocationPKof the actual location- Returns:
- The builder
-
withTargetLocation
Add an targetLocationby the given uniqueLocationPkin an expected format like AAAAAAA/BBBBBB/.... Where the number of digits each coordinate has and the number of coordinates at all is defined by theFieldLengthProvider.- Parameters:
targetLocation- The String representation ofLocationPKof the target location- Returns:
- The builder
-
withTargetLocationGroup
-
withErrorCode
-
withCreateDate
public ResponseMessage.Builder withCreateDate(String createDate, String pattern) throws ParseException - Throws:
ParseException
-
build
-