org.openwms.common.domain
Class LocationPK

java.lang.Object
  extended by org.openwms.common.domain.LocationPK
All Implemented Interfaces:
Serializable

public class LocationPK
extends Object
implements Serializable

A LocationPK, is a value type and is used as an unique natural key of Location entities.

Since:
0.1
Version:
$Revision: 1587 $
Author:
Heiko Scherrer
See Also:
Location, Serialized Form

Constructor Summary
LocationPK(String area, String aisle, String x, String y, String z)
          Create a new LocationPK.
 
Method Summary
 boolean equals(Object o)
          
 String getAisle()
          Get the aisle region.
 String getArea()
          Get the area region.
 String getX()
          Get the x dimension.
 String getY()
          Get the y dimension.
 String getZ()
          Get the z dimension.
 int hashCode()
          
 String toString()
          Return a String like {AREA/AISLE/X/Y/Z}.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocationPK

public LocationPK(String area,
                  String aisle,
                  String x,
                  String y,
                  String z)
Create a new LocationPK.

Parameters:
area - Area where the Location belongs to
aisle - Aisle where the Location belongs to
x - Dimension x where the Location belongs to
y - Dimension y where the Location belongs to
z - Dimension z where the Location belongs to
Method Detail

getArea

public String getArea()
Get the area region.

Returns:
The area

getAisle

public String getAisle()
Get the aisle region.

Returns:
The aisle

getX

public String getX()
Get the x dimension.

Returns:
The x dimension

getY

public String getY()
Get the y dimension.

Returns:
The y dimension

getZ

public String getZ()
Get the z dimension.

Returns:
The z dimension

equals

public boolean equals(Object o)

Overrides:
equals in class Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()
Return a String like {AREA/AISLE/X/Y/Z}.

Overrides:
toString in class Object
Returns:
String
See Also:
Object.toString()


Copyright © 2005-2011 openwms.org. All Rights Reserved.