corny.addressbook.searching.ValueModifier
Enum ValueModifier.Modifier

java.lang.Object
  extended by java.lang.Enum<ValueModifier.Modifier>
      extended by corny.addressbook.searching.ValueModifier.ValueModifier.Modifier
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ValueModifier.Modifier>
Enclosing interface:
ValueModifier

public static enum ValueModifier.Modifier
extends java.lang.Enum<ValueModifier.Modifier>

Enumeration which contains every available ValueModifier.

Author:
Corny

Enum Constant Summary
ADD_DIALING_CODE
          Modifier which adds an international dialing code to a phone number
ADD_PARENT_GROUP
          Modifier which adds the Contact to a new Group
APPEND_TO_BEGINNING
          Modifier which appends a String to the beginning of the value
APPEND_TO_END
          Modifier which appends a String to the end of the value
INSERT_AT_POSITION
          Modifier which inserts a String into the value
OVERRIDE_VALUE
          Modifier which overrides the value
REMOVE_DIALING_CODE
          Modifier which removes an international dialing code from a phone number
REMOVE_PARENT_GROUP
          Modifier which removes the Contact from a Group
SEARCH_AND_REPLACE
          Modifier which inserts a String into the value
TOGGLE_VALUE
          Modifier which toggles a Boolean value
 
Method Summary
 ValueModifier getModifier()
           
static ValueModifier.Modifier valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ValueModifier.Modifier[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OVERRIDE_VALUE

public static final ValueModifier.Modifier OVERRIDE_VALUE
Modifier which overrides the value


APPEND_TO_BEGINNING

public static final ValueModifier.Modifier APPEND_TO_BEGINNING
Modifier which appends a String to the beginning of the value


APPEND_TO_END

public static final ValueModifier.Modifier APPEND_TO_END
Modifier which appends a String to the end of the value


INSERT_AT_POSITION

public static final ValueModifier.Modifier INSERT_AT_POSITION
Modifier which inserts a String into the value


SEARCH_AND_REPLACE

public static final ValueModifier.Modifier SEARCH_AND_REPLACE
Modifier which inserts a String into the value


TOGGLE_VALUE

public static final ValueModifier.Modifier TOGGLE_VALUE
Modifier which toggles a Boolean value


ADD_PARENT_GROUP

public static final ValueModifier.Modifier ADD_PARENT_GROUP
Modifier which adds the Contact to a new Group


REMOVE_PARENT_GROUP

public static final ValueModifier.Modifier REMOVE_PARENT_GROUP
Modifier which removes the Contact from a Group


ADD_DIALING_CODE

public static final ValueModifier.Modifier ADD_DIALING_CODE
Modifier which adds an international dialing code to a phone number


REMOVE_DIALING_CODE

public static final ValueModifier.Modifier REMOVE_DIALING_CODE
Modifier which removes an international dialing code from a phone number

Method Detail

values

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

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

valueOf

public static ValueModifier.Modifier 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
java.lang.NullPointerException - if the argument is null

getModifier

public ValueModifier getModifier()
Returns:
The ValueModifier