com.unboundid.ldap.sdk.unboundidds
Class ChangeLogEntryAttributeExceededMaxValuesCount

java.lang.Object
  extended by com.unboundid.ldap.sdk.unboundidds.ChangeLogEntryAttributeExceededMaxValuesCount
All Implemented Interfaces:
java.io.Serializable

@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class ChangeLogEntryAttributeExceededMaxValuesCount
extends java.lang.Object
implements java.io.Serializable

NOTE: This class is part of the Commercial Edition of the UnboundID LDAP SDK for Java. It is not available for use in applications that include only the Standard Edition of the LDAP SDK, and is not supported for use in conjunction with non-UnboundID products.
This class provides a data structure for holding information read from a value of the ds-changelog-attr-exceeded-max-values-count attribute. Values should be in the form "attr=X,beforeCount=Y,afterCount=Z", where "X" is the name of the attribute which had too many values before and/or after the change, "Y" is the number of values the attribute had before the change, and "Z" is the number of values the attribute had after the change.

See Also:
Serialized Form

Constructor Summary
ChangeLogEntryAttributeExceededMaxValuesCount(java.lang.String s)
          Creates a new instance of this object from the provided string value from the ds-changelog-attr-exceeded-max-values-count.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether the provided object is equal to this changelog attribute exceeded max values count object.
 long getAfterCount()
          Retrieves the number of values the specified attribute had in the target entry after the associated change was processed.
 java.lang.String getAttributeName()
          Retrieves the name of the attribute that exceeded the maximum number of values for inclusion in the ds-changelog-before-values and/or ds-changelog-after-values attribute of the changelog entry.
 long getBeforeCount()
          Retrieves the number of values the specified attribute had in the target entry before the associated change was processed.
 int hashCode()
          Generates a hash code for this changelog attribute exceeded max values count object.
 java.lang.String toString()
          Retrieves a string representation of this changelog entry attribute exceeded max values count.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChangeLogEntryAttributeExceededMaxValuesCount

public ChangeLogEntryAttributeExceededMaxValuesCount(java.lang.String s)
                                              throws LDAPException
Creates a new instance of this object from the provided string value from the ds-changelog-attr-exceeded-max-values-count.

Parameters:
s - The value to be parsed.
Throws:
LDAPException - If an error occurred while attempting to parse the value.
Method Detail

getAttributeName

public java.lang.String getAttributeName()
Retrieves the name of the attribute that exceeded the maximum number of values for inclusion in the ds-changelog-before-values and/or ds-changelog-after-values attribute of the changelog entry.

Returns:
The name of the attribute that exceeded the maximum number of values for inclusion in the ds-changelog-before-values and/or ds-changelog-after-values attribute of the changelog entry.

getBeforeCount

public long getBeforeCount()
Retrieves the number of values the specified attribute had in the target entry before the associated change was processed.

Returns:
The number of values the specified attribute had in the target entry before the associated change was processed, or zero if the attribute was not present in the entry before the change.

getAfterCount

public long getAfterCount()
Retrieves the number of values the specified attribute had in the target entry after the associated change was processed.

Returns:
The number of values the specified attribute had in the target entry after the associated change was processed, or zero if the attribute was not present in the entry after the change.

hashCode

public int hashCode()
Generates a hash code for this changelog attribute exceeded max values count object.

Overrides:
hashCode in class java.lang.Object
Returns:
The generated hash code for this changelog attribute exceeded max values count object.

equals

public boolean equals(java.lang.Object o)
Indicates whether the provided object is equal to this changelog attribute exceeded max values count object.

Overrides:
equals in class java.lang.Object
Parameters:
o - The object for which to make the determination.
Returns:
true if the provided object may be considered equal to this changelog attribute exceeded max values count object, or false if not.

toString

public java.lang.String toString()
Retrieves a string representation of this changelog entry attribute exceeded max values count.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this changelog entry attribute exceeded max values count.