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.representative.admin
Enum RepresentativeEditor.Error

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

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

The Error-codes of the RepresentativeEditor.

Version:
$Revision: 2013 $
Author:
Daniel Dietz

Enum Constant Summary
CANNOT_STORE_REPRESENTATIVE_WITH_COUNTRY_NOT_SET
          Cannot store representative with country not set.
CANNOT_STORE_REPRESENTATIVE_WITH_EMPTY_NAME
          Cannot store representative with empty name.
CANNOT_STORE_REPRESENTATIVE_WITH_REPRESENTS_COUNTRY_NOT_SET
          Cannot store representative represents country not set.
CANNOT_STORE_REPRESENTATIVE_WITH_REPRESENTS_REGION_NOT_SET
          Cannot store representative with represents region not set.
COULD_NOT_DELETE_REPRESENTATIVE_FOR_GIVEN_ID
          Could not delete representative for given id.
COULD_NOT_LOAD_REPRESENTATIVE_FOR_GIVEN_ID
          Could not load representative for given id.
 
Method Summary
static RepresentativeEditor.Error valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RepresentativeEditor.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_REPRESENTATIVE_FOR_GIVEN_ID

public static final RepresentativeEditor.Error COULD_NOT_LOAD_REPRESENTATIVE_FOR_GIVEN_ID
Could not load representative for given id.


COULD_NOT_DELETE_REPRESENTATIVE_FOR_GIVEN_ID

public static final RepresentativeEditor.Error COULD_NOT_DELETE_REPRESENTATIVE_FOR_GIVEN_ID
Could not delete representative for given id.


CANNOT_STORE_REPRESENTATIVE_WITH_EMPTY_NAME

public static final RepresentativeEditor.Error CANNOT_STORE_REPRESENTATIVE_WITH_EMPTY_NAME
Cannot store representative with empty name.


CANNOT_STORE_REPRESENTATIVE_WITH_REPRESENTS_REGION_NOT_SET

public static final RepresentativeEditor.Error CANNOT_STORE_REPRESENTATIVE_WITH_REPRESENTS_REGION_NOT_SET
Cannot store representative with represents region not set.


CANNOT_STORE_REPRESENTATIVE_WITH_REPRESENTS_COUNTRY_NOT_SET

public static final RepresentativeEditor.Error CANNOT_STORE_REPRESENTATIVE_WITH_REPRESENTS_COUNTRY_NOT_SET
Cannot store representative represents country not set.


CANNOT_STORE_REPRESENTATIVE_WITH_COUNTRY_NOT_SET

public static final RepresentativeEditor.Error CANNOT_STORE_REPRESENTATIVE_WITH_COUNTRY_NOT_SET
Cannot store representative with country not set.

Method Detail

values

public static final RepresentativeEditor.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(RepresentativeEditor.Error c : RepresentativeEditor.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 RepresentativeEditor.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