Package org.opencms.workplace.comparison
Class CmsDiffViewMode
java.lang.Object
org.opencms.workplace.comparison.CmsDiffViewMode
- All Implemented Interfaces:
Serializable
- Since:
- 6.0.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CmsDiffViewMode
Constant for viewing all lines.static final CmsDiffViewMode
Constant for viewing only the different lines.static final List<CmsDiffViewMode>
List of mode constants. -
Method Summary
Modifier and TypeMethodDescriptiongetMode()
Returns the mode string.getName()
Returns the name to show.toString()
static CmsDiffViewMode
Parses an string into an element of this enumeration.
-
Field Details
-
ALL
Constant for viewing all lines. -
DIFF_ONLY
Constant for viewing only the different lines. -
VALUES
List of mode constants.
-
-
Method Details
-
valueOf
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
Returns the mode string.- Returns:
- the mode string
-
getName
Returns the name to show.- Returns:
- the name to show
-
toString
-