Package org.opencms.workplace.comparison
Class CmsDiffViewMode
- java.lang.Object
-
- org.opencms.workplace.comparison.CmsDiffViewMode
-
- All Implemented Interfaces:
java.io.Serializable
public final class CmsDiffViewMode extends java.lang.Object implements java.io.Serializable
- Since:
- 6.0.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static CmsDiffViewMode
ALL
Constant for viewing all lines.static CmsDiffViewMode
DIFF_ONLY
Constant for viewing only the different lines.static java.util.List<CmsDiffViewMode>
VALUES
List of mode constants.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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<CmsDiffViewMode> 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 classjava.lang.Object
- See Also:
Object.toString()
-
-