org.eclipse.emf.emfstore.internal.client.model.util
Enum ChecksumErrorHandler

java.lang.Object
  extended by java.lang.Enum<ChecksumErrorHandler>
      extended by org.eclipse.emf.emfstore.internal.client.model.util.ChecksumErrorHandler
All Implemented Interfaces:
Serializable, Comparable<ChecksumErrorHandler>, ESChecksumErrorHandler

public enum ChecksumErrorHandler
extends Enum<ChecksumErrorHandler>
implements ESChecksumErrorHandler

Pre-defined error handlers.

Author:
emueller, Lucas Koehler

Enum Constant Summary
AUTOCORRECT
          Fixes the checksum comparison failure by deleting the ProjectSpace that got in an inconsistent state and checking it out again.
Note: all references to the project space that will be deleted should to be taken care of.
CANCEL
          Aborts execution of the caller.
LOG
          Logs the checksum comparison failure and continues execution of the caller.
LOG_DETAILED
          Logs the checksum comparison failure detailed: the serialization of both project spaces is written in seperate files.
 
Method Summary
static ChecksumErrorHandler valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ChecksumErrorHandler[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.emfstore.client.handler.ESChecksumErrorHandler
execute
 

Enum Constant Detail

LOG

public static final ChecksumErrorHandler LOG
Logs the checksum comparison failure and continues execution of the caller.


LOG_DETAILED

public static final ChecksumErrorHandler LOG_DETAILED
Logs the checksum comparison failure detailed: the serialization of both project spaces is written in seperate files. The execution of the caller will then be continued.


CANCEL

public static final ChecksumErrorHandler CANCEL
Aborts execution of the caller.


AUTOCORRECT

public static final ChecksumErrorHandler AUTOCORRECT
Fixes the checksum comparison failure by deleting the ProjectSpace that got in an inconsistent state and checking it out again.
Note: all references to the project space that will be deleted should to be taken care of.

Method Detail

values

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

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

valueOf

public static ChecksumErrorHandler valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2015. All Rights Reserved.