Package org.opencms.workplace.comparison
Class CmsAttributeComparison
java.lang.Object
org.opencms.workplace.comparison.CmsAttributeComparison
- Direct Known Subclasses:
CmsElementComparison
Comparison of resource attributes.
-
Constructor Summary
ConstructorDescriptionConstructs a new attribute object.CmsAttributeComparison
(String name, String version1, String version2) Creates a new attribute comparison.CmsAttributeComparison
(String name, String version1, String version2, String type) Creates a new attribute comparison. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the locale.Returns the type.Returns the attribute.Returns the type.void
Sets the name.void
Sets the type.void
setVersion1
(String version1) Sets the version1.void
setVersion2
(String type) Sets the type.
-
Constructor Details
-
CmsAttributeComparison
public CmsAttributeComparison()Constructs a new attribute object. -
CmsAttributeComparison
Creates a new attribute comparison.- Parameters:
name
- the name to setversion1
- the first value of the propertyversion2
- the second value of the property
-
CmsAttributeComparison
Creates a new attribute comparison.- Parameters:
name
- the name to setversion1
- the first value of the propertyversion2
- the second value of the propertytype
- the type indicating if the element value has been added, removed, modified or is unchanged- See Also:
-
-
Method Details
-
getName
Returns the locale.- Returns:
- the locale
-
getStatus
Returns the type.- Returns:
- the type
-
getVersion1
Returns the attribute.- Returns:
- the attribute
-
getVersion2
Returns the type.- Returns:
- the type
-
setName
Sets the name.- Parameters:
name
- the name to set
-
setStatus
Sets the type.- Parameters:
type
- the type to set
-
setVersion1
Sets the version1.- Parameters:
version1
- the version1 to set
-
setVersion2
Sets the type.- Parameters:
type
- the type to set
-