org.apache.directory.api.ldap.aci.protectedItem
Class MaxValueCountElem

java.lang.Object
  extended by org.apache.directory.api.ldap.aci.protectedItem.MaxValueCountElem

public class MaxValueCountElem
extends Object

An element of MaxValueCount.


Constructor Summary
MaxValueCountElem(org.apache.directory.api.ldap.model.schema.AttributeType attributeType, int maxCount)
          Creates a new instance.
 
Method Summary
 boolean equals(Object o)
          
 org.apache.directory.api.ldap.model.schema.AttributeType getAttributeType()
          Gets the attribute to limit the maximum count.
 int getMaxCount()
          Gets the maximum count of the attribute allowed.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MaxValueCountElem

public MaxValueCountElem(org.apache.directory.api.ldap.model.schema.AttributeType attributeType,
                         int maxCount)
Creates a new instance.

Parameters:
attributeType - the attribute ID to limit the maximum count
maxCount - the maximum count of the attribute allowed
Method Detail

getAttributeType

public org.apache.directory.api.ldap.model.schema.AttributeType getAttributeType()
Gets the attribute to limit the maximum count.

Returns:
the attribute type

getMaxCount

public int getMaxCount()
Gets the maximum count of the attribute allowed.

Returns:
the maximum count of the attribute allowed

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object o)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.