org.openstreetmap.osmosis.core.pgsql.v0_6.impl
Enum ChangesetAction

java.lang.Object
  extended by java.lang.Enum<ChangesetAction>
      extended by org.openstreetmap.osmosis.core.pgsql.v0_6.impl.ChangesetAction
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ChangesetAction>

public enum ChangesetAction
extends java.lang.Enum<ChangesetAction>

Defines the values for the "action" columns in the pgsql schema. These actions define what activity has been performed on an entity during application of a changeset.

Author:
Brett Henderson

Enum Constant Summary
CREATE
          The entity has been added.
DELETE
          The entity has been deleted.
MODIFY
          The entity has been modified.
NONE
          No entity is unchanged.
 
Method Summary
 java.lang.String getDatabaseValue()
          Returns the database value representing this action.
static ChangesetAction valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ChangesetAction[] 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

NONE

public static final ChangesetAction NONE
No entity is unchanged.


CREATE

public static final ChangesetAction CREATE
The entity has been added.


MODIFY

public static final ChangesetAction MODIFY
The entity has been modified.


DELETE

public static final ChangesetAction DELETE
The entity has been deleted.

Method Detail

values

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

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

valueOf

public static ChangesetAction 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

getDatabaseValue

public java.lang.String getDatabaseValue()
Returns the database value representing this action.

Returns:
The database value.