org.apache.maven.changes
Class ActionType

java.lang.Object
  extended by org.apache.maven.changes.ActionType
All Implemented Interfaces:
java.lang.Comparable

public final class ActionType
extends java.lang.Object
implements java.lang.Comparable

Action type enumeration.

Version:
$Id: ActionType.java 1205 2006-01-04 14:24:23Z snicoll $
Author:
Stephane Nicoll

Field Summary
static ActionType ADD
          An action representing a new feature.
static ActionType FIX
          An action representing a fix.
static ActionType REMOVE
          An action representing a removal.
static ActionType UPDATE
          An action representing an improvement.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
static ActionType getActionType(java.lang.String name)
          Returns the ActionType based on its name.
static java.util.Collection getActionTypes()
          Returns a Collection of supported action types.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FIX

public static final ActionType FIX
An action representing a fix.


ADD

public static final ActionType ADD
An action representing a new feature.


UPDATE

public static final ActionType UPDATE
An action representing an improvement.


REMOVE

public static final ActionType REMOVE
An action representing a removal.

Method Detail

getActionType

public static ActionType getActionType(java.lang.String name)
Returns the ActionType based on its name.

Parameters:
name - the name of the action
Returns:
the action type or null if no such type exists.

getActionTypes

public static java.util.Collection getActionTypes()
Returns a Collection of supported action types.

Returns:
the supported action types

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2010. All Rights Reserved.