Class TransportUnitMO
java.lang.Object
org.openwms.common.transport.api.messages.TransportUnitMO
- All Implemented Interfaces:
Serializable
A TransportUnitMO is a Message Object (MO) that represents a
TransportUnit
.- Author:
- Heiko Scherrer
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate @NotNull(groups={Create.class,Modified.class}) LocationMO
The actualLocation of the TransportUnit.private LocalDateTime
The actualLocationDate of the TransportUnit.private @NotBlank(groups={ChangeTarget.class,Create.class,Modified.class}) String
The business key of the TransportUnit.private String
The business key of the parent TransportUnit.private @NotBlank(groups={Request.class,Remove.class}) String
The persistent key of TransportUnit.private String
The state of the TransportUnit.private @NotNull(groups=ChangeTarget.class) LocationMO
The targetLocation of the TransportUnit.private @Valid @NotNull(groups=Modified.class) TransportUnitTypeMO
The transportUnitType of the TransportUnit. -
Constructor Summary
ModifierConstructorDescriptionRequired Default constructor.private
TransportUnitMO
(TransportUnitMO.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptiongetpKey()
getState()
boolean
static TransportUnitMO.Builder
void
setActualLocation
(LocationMO actualLocation) void
setActualLocationDate
(LocalDateTime actualLocationDate) void
setBarcode
(String barcode) void
void
void
void
setTargetLocation
(LocationMO targetLocation) void
setTransportUnitType
(TransportUnitTypeMO transportUnitType) toString()
All fields.
-
Field Details
-
pKey
@NotBlank(groups={Request.class,Remove.class}) private @NotBlank(groups={Request.class,Remove.class}) String pKeyThe persistent key of TransportUnit. -
barcode
@NotBlank(groups={ChangeTarget.class,Create.class,Modified.class}) private @NotBlank(groups={ChangeTarget.class,Create.class,Modified.class}) String barcodeThe business key of the TransportUnit. -
actualLocationDate
The actualLocationDate of the TransportUnit. -
state
The state of the TransportUnit. -
actualLocation
@NotNull(groups={Create.class,Modified.class}) private @NotNull(groups={Create.class,Modified.class}) LocationMO actualLocationThe actualLocation of the TransportUnit. -
targetLocation
@NotNull(groups=ChangeTarget.class) private @NotNull(groups=ChangeTarget.class) LocationMO targetLocationThe targetLocation of the TransportUnit. -
transportUnitType
@Valid @NotNull(groups=Modified.class) private @Valid @NotNull(groups=Modified.class) TransportUnitTypeMO transportUnitTypeThe transportUnitType of the TransportUnit. -
parent
The business key of the parent TransportUnit.
-
-
Constructor Details
-
TransportUnitMO
public TransportUnitMO()Required Default constructor. -
TransportUnitMO
-
-
Method Details
-
newBuilder
-
hasTargetLocation
public boolean hasTargetLocation() -
getpKey
-
setpKey
-
getBarcode
-
setBarcode
-
getActualLocationDate
-
setActualLocationDate
-
getState
-
setState
-
getActualLocation
-
setActualLocation
-
getTargetLocation
-
setTargetLocation
-
getTransportUnitType
-
setTransportUnitType
-
getParent
-
setParent
-
toString
All fields.
-