eu.etaxonomy.cdm.strategy.merge
Enum MergeMode

java.lang.Object
  extended by java.lang.Enum<MergeMode>
      extended by eu.etaxonomy.cdm.strategy.merge.MergeMode
All Implemented Interfaces:
Serializable, Comparable<MergeMode>

public enum MergeMode
extends Enum<MergeMode>

Enumeration for merge modes

Version:
1.0
Author:
a.mueller

Enum Constant Summary
ADD
           
ADD_CLONE
           
AND
           
CONCAT
           
FIRST
           
MERGE
           
NULL
           
OR
           
RELATION
           
SECOND
           
 
Method Summary
static MergeMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MergeMode[] 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

FIRST

public static final MergeMode FIRST

SECOND

public static final MergeMode SECOND

NULL

public static final MergeMode NULL

CONCAT

public static final MergeMode CONCAT

ADD

public static final MergeMode ADD

ADD_CLONE

public static final MergeMode ADD_CLONE

AND

public static final MergeMode AND

OR

public static final MergeMode OR

RELATION

public static final MergeMode RELATION

MERGE

public static final MergeMode MERGE
Method Detail

values

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

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

valueOf

public static MergeMode 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 © 2007-2013 EDIT. All Rights Reserved.