org.jickr
Enum PhotoSearch.Tagmode

java.lang.Object
  extended by java.lang.Enum<PhotoSearch.Tagmode>
      extended by org.jickr.PhotoSearch.Tagmode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PhotoSearch.Tagmode>
Enclosing class:
PhotoSearch

public static enum PhotoSearch.Tagmode
extends java.lang.Enum<PhotoSearch.Tagmode>

The join mode for multitag searches. Used to set search conditions via PhotoSearch.setTagMode(Tagmode)

See Also:
PhotoSearch.setTagMode(Tagmode)

Enum Constant Summary
ALL
          Search for every tag in the taglist - i.e., this is an AND operation.
ANY
          Search for any tag in the taglist - i.e., this is an OR operation.
 
Method Summary
static PhotoSearch.Tagmode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PhotoSearch.Tagmode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ANY

public static final PhotoSearch.Tagmode ANY
Search for any tag in the taglist - i.e., this is an OR operation.


ALL

public static final PhotoSearch.Tagmode ALL
Search for every tag in the taglist - i.e., this is an AND operation.

Method Detail

values

public static final PhotoSearch.Tagmode[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(PhotoSearch.Tagmode c : PhotoSearch.Tagmode.values())
        System.out.println(c);

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

valueOf

public static PhotoSearch.Tagmode 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