org.electrocodeogram.cpc.core.api.provider.store
Enum IStoreProvider.UpdateMode

java.lang.Object
  extended by java.lang.Enum<IStoreProvider.UpdateMode>
      extended by org.electrocodeogram.cpc.core.api.provider.store.IStoreProvider.UpdateMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IStoreProvider.UpdateMode>
Enclosing interface:
IStoreProvider

public static enum IStoreProvider.UpdateMode
extends java.lang.Enum<IStoreProvider.UpdateMode>

Used to provide IStoreProvider.updateClone(IClone, UpdateMode) with information on the type of modification done to the given clone.
The updateClone method may be called multiple times for the same clone, in that case the given update modes are accumulated. A call with MOVED and a call with MODIFIED together are equivalent to a single call with MOVED_MODIFIED.


Enum Constant Summary
MODIFIED
          The clone content (and potentially length) was modified.
MOVED
          The clone was only moved or some other data was modified, i.e.
MOVED_MODIFIED
          Combination of MOVED and MODIFIED.
 
Method Summary
static IStoreProvider.UpdateMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IStoreProvider.UpdateMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MOVED

public static final IStoreProvider.UpdateMode MOVED
The clone was only moved or some other data was modified, i.e. an extension.
Its length and contents remain unchanged.


MODIFIED

public static final IStoreProvider.UpdateMode MODIFIED
The clone content (and potentially length) was modified.
Its offset remains unchanged.


MOVED_MODIFIED

public static final IStoreProvider.UpdateMode MOVED_MODIFIED
Combination of MOVED and MODIFIED.
The clones position and content was changed.

Method Detail

values

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

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

valueOf

public static IStoreProvider.UpdateMode 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
java.lang.NullPointerException - if the argument is null