atg.commerce.search.config
Enum CollectorPropertyService.AvailabilityStatus

java.lang.Object
  extended by java.lang.Enum<CollectorPropertyService.AvailabilityStatus>
      extended by atg.commerce.search.config.CollectorPropertyService.AvailabilityStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CollectorPropertyService.AvailabilityStatus>
Enclosing class:
CollectorPropertyService

public static enum CollectorPropertyService.AvailabilityStatus
extends java.lang.Enum<CollectorPropertyService.AvailabilityStatus>

Stock Availability Status enum of stock statuses that can be returned from the InventoryManager.


Enum Constant Summary
BACKORDERABLE
           
DERIVED
           
DISCONTINUED
           
IN_STOCK
           
OUT_OF_STOCK
           
PREORDERABLE
           
UNAVAILABLE
           
 
Method Summary
static CollectorPropertyService.AvailabilityStatus getAvailabilityStatus(int pInventoryManagerStatus)
          Maps the constants that the InventoryManager can return to one of the enum values.
 int getInventoryManagerStatus()
          Maps an AvailabilityStatus enum value to a constant used by the InventoryManager.
static CollectorPropertyService.AvailabilityStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CollectorPropertyService.AvailabilityStatus[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNAVAILABLE

public static final CollectorPropertyService.AvailabilityStatus UNAVAILABLE

BACKORDERABLE

public static final CollectorPropertyService.AvailabilityStatus BACKORDERABLE

DERIVED

public static final CollectorPropertyService.AvailabilityStatus DERIVED

DISCONTINUED

public static final CollectorPropertyService.AvailabilityStatus DISCONTINUED

IN_STOCK

public static final CollectorPropertyService.AvailabilityStatus IN_STOCK

OUT_OF_STOCK

public static final CollectorPropertyService.AvailabilityStatus OUT_OF_STOCK

PREORDERABLE

public static final CollectorPropertyService.AvailabilityStatus PREORDERABLE
Method Detail

values

public static final CollectorPropertyService.AvailabilityStatus[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(CollectorPropertyService.AvailabilityStatus c : CollectorPropertyService.AvailabilityStatus.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static CollectorPropertyService.AvailabilityStatus 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 name

getInventoryManagerStatus

public int getInventoryManagerStatus()
Maps an AvailabilityStatus enum value to a constant used by the InventoryManager.

Returns:
the InventoryManager int constant that maps to this enum.

getAvailabilityStatus

public static CollectorPropertyService.AvailabilityStatus getAvailabilityStatus(int pInventoryManagerStatus)
Maps the constants that the InventoryManager can return to one of the enum values.

Parameters:
pInventoryManagerStatus - int constant returned from the InventoryManager
Returns:
AvailabilityStatus enum value mapping to the passed in constant