Package com.sgs.common.database
Enum Location.LocationType
- java.lang.Object
-
- java.lang.Enum<Location.LocationType>
-
- com.sgs.common.database.Location.LocationType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Location.LocationType>
- Enclosing class:
- Location
public static enum Location.LocationType extends java.lang.Enum<Location.LocationType>
The type of location. Stock or Production Stock locations hold inventory while production locations are used to display production schedules and other jobs For example a WET room could be defined as a production location which contains 4 terminals. These 4 terminals may then pull stock from a set of RACKS which are stock locations.- Author:
- SGSystems
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PRODUCTION
STOCK
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.jdesktop.swingx.JXComboBox
getCombobox()
int
getType()
static Location.LocationType
parse(int type)
java.lang.String
toString()
static Location.LocationType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Location.LocationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STOCK
public static final Location.LocationType STOCK
-
PRODUCTION
public static final Location.LocationType PRODUCTION
-
-
Method Detail
-
values
public static Location.LocationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Location.LocationType c : Location.LocationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Location.LocationType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
parse
public static Location.LocationType parse(int type)
-
getType
public int getType()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Location.LocationType>
-
getCombobox
public static org.jdesktop.swingx.JXComboBox getCombobox()
-
-