org.opencms.workplace.comparison
Class CmsDiffViewMode

java.lang.Object
  extended by org.opencms.workplace.comparison.CmsDiffViewMode
All Implemented Interfaces:
java.io.Serializable

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

Wrapper class for the different types of diff modes.

The possibles values are:

Since:
6.0.0
Version:
$Revision: 1.8 $
Author:
Michael Moossen
See Also:
Serialized Form

Field Summary
static CmsDiffViewMode ALL
          Constant for viewing all lines.
static CmsDiffViewMode DIFF_ONLY
          Constant for viewing only the different lines.
static java.util.List VALUES
          List of mode constants.
 
Method Summary
 java.lang.String getMode()
          Returns the mode string.
 CmsMessageContainer getName()
          Returns the name to show.
 java.lang.String toString()
           
static CmsDiffViewMode valueOf(java.lang.String value)
          Parses an string into an element of this enumeration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALL

public static final CmsDiffViewMode ALL
Constant for viewing all lines.


DIFF_ONLY

public static final CmsDiffViewMode DIFF_ONLY
Constant for viewing only the different lines.


VALUES

public static final java.util.List VALUES
List of mode constants.

Method Detail

valueOf

public static CmsDiffViewMode valueOf(java.lang.String value)
                               throws CmsIllegalArgumentException
Parses an string into an element of this enumeration.

Parameters:
value - the mode to parse
Returns:
the enumeration element
Throws:
CmsIllegalArgumentException - if the given value could not be matched against an element of this type.

getMode

public java.lang.String getMode()
Returns the mode string.

Returns:
the mode string

getName

public CmsMessageContainer getName()
Returns the name to show.

Returns:
the name to show

toString

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