Package org.opencms.workplace.comparison
Class CmsElementComparison
java.lang.Object
org.opencms.workplace.comparison.CmsAttributeComparison
org.opencms.workplace.comparison.CmsElementComparison
- All Implemented Interfaces:
Comparable<CmsElementComparison>
- Direct Known Subclasses:
CmsXmlContentElementComparison
public class CmsElementComparison
extends CmsAttributeComparison
implements Comparable<CmsElementComparison>
Comparison of two xml page elements.
-
Constructor Summary
ConstructorDescriptionCmsElementComparison
(Locale locale, String name) Creates a new element comparison. -
Method Summary
Methods inherited from class org.opencms.workplace.comparison.CmsAttributeComparison
getName, getStatus, getVersion1, getVersion2, setName, setStatus, setVersion1, setVersion2
-
Constructor Details
-
CmsElementComparison
Creates a new element comparison.- Parameters:
locale
- the locale of the comparisonname
- the name of the element
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<CmsElementComparison>
- See Also:
-
equals
-
getLocale
Returns the locale.- Returns:
- the locale
-
hashCode
-
setLocale
Sets the locale.- Parameters:
locale
- the locale to set
-