Package org.opencms.workplace.comparison
Class CmsAttributeComparison
- java.lang.Object
-
- org.opencms.workplace.comparison.CmsAttributeComparison
-
- Direct Known Subclasses:
CmsElementComparison
public class CmsAttributeComparison extends java.lang.Object
Comparison of resource attributes.
-
-
Constructor Summary
Constructors Constructor Description CmsAttributeComparison()
Constructs a new attribute object.CmsAttributeComparison(java.lang.String name, java.lang.String version1, java.lang.String version2)
Creates a new attribute comparison.CmsAttributeComparison(java.lang.String name, java.lang.String version1, java.lang.String version2, java.lang.String type)
Creates a new attribute comparison.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Returns the locale.java.lang.String
getStatus()
Returns the type.java.lang.String
getVersion1()
Returns the attribute.java.lang.String
getVersion2()
Returns the type.void
setName(java.lang.String name)
Sets the name.void
setStatus(java.lang.String type)
Sets the type.void
setVersion1(java.lang.String version1)
Sets the version1.void
setVersion2(java.lang.String type)
Sets the type.
-
-
-
Constructor Detail
-
CmsAttributeComparison
public CmsAttributeComparison()
Constructs a new attribute object.
-
CmsAttributeComparison
public CmsAttributeComparison(java.lang.String name, java.lang.String version1, java.lang.String version2)
Creates a new attribute comparison.- Parameters:
name
- the name to setversion1
- the first value of the propertyversion2
- the second value of the property
-
CmsAttributeComparison
public CmsAttributeComparison(java.lang.String name, java.lang.String version1, java.lang.String version2, java.lang.String type)
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:
CmsResourceComparison.TYPE_ADDED
,CmsResourceComparison.TYPE_CHANGED
,CmsResourceComparison.TYPE_REMOVED
,CmsResourceComparison.TYPE_UNCHANGED
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the locale.- Returns:
- the locale
-
getStatus
public java.lang.String getStatus()
Returns the type.- Returns:
- the type
-
getVersion1
public java.lang.String getVersion1()
Returns the attribute.- Returns:
- the attribute
-
getVersion2
public java.lang.String getVersion2()
Returns the type.- Returns:
- the type
-
setName
public void setName(java.lang.String name)
Sets the name.- Parameters:
name
- the name to set
-
setStatus
public void setStatus(java.lang.String type)
Sets the type.- Parameters:
type
- the type to set
-
setVersion1
public void setVersion1(java.lang.String version1)
Sets the version1.- Parameters:
version1
- the version1 to set
-
setVersion2
public void setVersion2(java.lang.String type)
Sets the type.- Parameters:
type
- the type to set
-
-