org.apache.stanbol.entityhub.servicesapi.query
Enum ValueConstraint.MODE

java.lang.Object
  extended by java.lang.Enum<ValueConstraint.MODE>
      extended by org.apache.stanbol.entityhub.servicesapi.query.ValueConstraint.MODE
All Implemented Interfaces:
Serializable, Comparable<ValueConstraint.MODE>
Enclosing class:
ValueConstraint

public static enum ValueConstraint.MODE
extends Enum<ValueConstraint.MODE>

The mode how multiple values are treated


Enum Constant Summary
all
          All parsed values must be present.
any
          Any of the parsed values is sufficient to select an entity.
 
Method Summary
static ValueConstraint.MODE valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ValueConstraint.MODE[] 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

any

public static final ValueConstraint.MODE any
Any of the parsed values is sufficient to select an entity. Similar to UNION in SPARQL


all

public static final ValueConstraint.MODE all
All parsed values must be present.

Method Detail

values

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

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

valueOf

public static ValueConstraint.MODE 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 © 2010-2012 The Apache Software Foundation. All Rights Reserved.