pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.util.retailer.admin
Enum RetailerEditor.Error

java.lang.Object
  extended by java.lang.Enum<RetailerEditor.Error>
      extended by org.torweg.pulse.component.util.retailer.admin.RetailerEditor.Error
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RetailerEditor.Error>
Enclosing class:
RetailerEditor

public static enum RetailerEditor.Error
extends java.lang.Enum<RetailerEditor.Error>

The Error-codes of the RetailerEditor.

Version:
$Revision: 2043 $
Author:
Daniel Dietz

Enum Constant Summary
CANNOT_CREATE_NEW_RETAILER_WITH_NO_COUNTRY
          Cannot create new retailer with no country.
CANNOT_STORE_RETAILER_WITH_EMPTY_NAME
          Cannot store retailer with empty name.
CANNOT_STORE_RETAILER_WITHOUT_CUSTOMERNUMBER
          Cannot store retailer without customerNumber.
COULD_NOT_DELETE_RETAILER_FOR_GIVEN_ID
          Could not delete retailer for given id.
COULD_NOT_LOAD_RETAILER_FOR_GIVEN_ID
          Could not load retailer for given id.
COUNTRIES_INCONSISTENCY
          The country passed in the request and the country of the loaded don't match.
 
Method Summary
static RetailerEditor.Error valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RetailerEditor.Error[] 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

COULD_NOT_LOAD_RETAILER_FOR_GIVEN_ID

public static final RetailerEditor.Error COULD_NOT_LOAD_RETAILER_FOR_GIVEN_ID
Could not load retailer for given id.


COULD_NOT_DELETE_RETAILER_FOR_GIVEN_ID

public static final RetailerEditor.Error COULD_NOT_DELETE_RETAILER_FOR_GIVEN_ID
Could not delete retailer for given id.


CANNOT_CREATE_NEW_RETAILER_WITH_NO_COUNTRY

public static final RetailerEditor.Error CANNOT_CREATE_NEW_RETAILER_WITH_NO_COUNTRY
Cannot create new retailer with no country.


CANNOT_STORE_RETAILER_WITHOUT_CUSTOMERNUMBER

public static final RetailerEditor.Error CANNOT_STORE_RETAILER_WITHOUT_CUSTOMERNUMBER
Cannot store retailer without customerNumber.


CANNOT_STORE_RETAILER_WITH_EMPTY_NAME

public static final RetailerEditor.Error CANNOT_STORE_RETAILER_WITH_EMPTY_NAME
Cannot store retailer with empty name.


COUNTRIES_INCONSISTENCY

public static final RetailerEditor.Error COUNTRIES_INCONSISTENCY
The country passed in the request and the country of the loaded don't match.

Method Detail

values

public static final RetailerEditor.Error[] 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(RetailerEditor.Error c : RetailerEditor.Error.values())
        System.out.println(c);

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

valueOf

public static RetailerEditor.Error 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