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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @NotNull(groups={Create.class,Modified.class}) LocationMOThe actualLocation of the TransportUnit.private LocalDateTimeThe actualLocationDate of the TransportUnit.private @NotBlank(groups={ChangeTarget.class,Create.class,Modified.class}) StringThe business key of the TransportUnit.private StringThe business key of the parent TransportUnit.private @NotBlank(groups={Request.class,Remove.class}) StringThe persistent key of TransportUnit.private StringThe state of the TransportUnit.private @NotNull(groups=ChangeTarget.class) LocationMOThe targetLocation of the TransportUnit.private @Valid @NotNull(groups=Modified.class) TransportUnitTypeMOThe transportUnitType of the TransportUnit. -
Constructor Summary
ConstructorsModifierConstructorDescriptionRequired Default constructor.privateTransportUnitMO(TransportUnitMO.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptiongetpKey()getState()booleanstatic TransportUnitMO.BuildervoidsetActualLocation(LocationMO actualLocation) voidsetActualLocationDate(LocalDateTime actualLocationDate) voidsetBarcode(String barcode) voidvoidvoidvoidsetTargetLocation(LocationMO targetLocation) voidsetTransportUnitType(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.
-