ca.bc.gov.webade.user.search
Class WildcardOptions

java.lang.Object
  extended byca.bc.gov.webade.user.search.WildcardOptions
All Implemented Interfaces:
java.io.Serializable

public final class WildcardOptions
extends java.lang.Object
implements java.io.Serializable

Author:
jross
See Also:
Serialized Form

Field Summary
static int EXACT_MATCH
          Exact match wildcard option.
static int WILDCARD_BOTH
          Wildcard to both sides of the search value when searching.
static int WILDCARD_LEFT
          Wildcard to the left of the search value only when searching.
static int WILDCARD_RIGHT
          Wildcard to the right of the search value only when searching.
 
Method Summary
static boolean isValidValue(int value)
          Verifies that the given value is one of the valid wildcard options.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXACT_MATCH

public static final int EXACT_MATCH
Exact match wildcard option. No wildcard searching.

See Also:
Constant Field Values

WILDCARD_LEFT

public static final int WILDCARD_LEFT
Wildcard to the left of the search value only when searching.

See Also:
Constant Field Values

WILDCARD_RIGHT

public static final int WILDCARD_RIGHT
Wildcard to the right of the search value only when searching.

See Also:
Constant Field Values

WILDCARD_BOTH

public static final int WILDCARD_BOTH
Wildcard to both sides of the search value when searching.

See Also:
Constant Field Values
Method Detail

isValidValue

public static boolean isValidValue(int value)
Verifies that the given value is one of the valid wildcard options.

Parameters:
value - The given wildcard value.
Returns:
True is the value equals on of the defined static values.