org.opencms.workplace.comparison
Class CmsAttributeComparison

java.lang.Object
  extended by org.opencms.workplace.comparison.CmsAttributeComparison
Direct Known Subclasses:
CmsElementComparison

public class CmsAttributeComparison
extends java.lang.Object

Comparison of resource attributes.

Author:
Jan Baudisch

Constructor Summary
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
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 set
version1 - the first value of the property
version2 - 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 set
version1 - the first value of the property
version2 - the second value of the property
type - 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