de.hpi.fgis.dude.similarityfunction
Enum SimilarityFunction.SimilarityValidationState

java.lang.Object
  extended by java.lang.Enum<SimilarityFunction.SimilarityValidationState>
      extended by de.hpi.fgis.dude.similarityfunction.SimilarityFunction.SimilarityValidationState
All Implemented Interfaces:
Serializable, Comparable<SimilarityFunction.SimilarityValidationState>
Enclosing interface:
SimilarityFunction

public static enum SimilarityFunction.SimilarityValidationState
extends Enum<SimilarityFunction.SimilarityValidationState>

SimilarityValidationState is a descriptor whether two values could be used for similarity calculation or not.

Author:
Matthias Pohl

Enum Constant Summary
BothInvalid
          BothInvalid means, that both values are invalid (e.g.
BothValid
          BothValid means, that the similarity can be calculated.
Value1ValidOnly
          Value1ValidOnly means, that only the first value was valid (e.g.
Value2ValidOnly
          Value2ValidOnly means, that only the second value was valid (e.g.
 
Method Summary
static SimilarityFunction.SimilarityValidationState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SimilarityFunction.SimilarityValidationState[] 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

BothValid

public static final SimilarityFunction.SimilarityValidationState BothValid
BothValid means, that the similarity can be calculated. Both values are valid.


Value1ValidOnly

public static final SimilarityFunction.SimilarityValidationState Value1ValidOnly
Value1ValidOnly means, that only the first value was valid (e.g. the second value does not exist).


Value2ValidOnly

public static final SimilarityFunction.SimilarityValidationState Value2ValidOnly
Value2ValidOnly means, that only the second value was valid (e.g. the first value does not exist).


BothInvalid

public static final SimilarityFunction.SimilarityValidationState BothInvalid
BothInvalid means, that both values are invalid (e.g. both values are missing).

Method Detail

values

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

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

valueOf

public static SimilarityFunction.SimilarityValidationState 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 © 2011 Hasso Plattner Institute - Chair of Information Systems. All Rights Reserved.