org.opends.server.core
Class RFC3672SubtreeSpecification.ItemRefinement

java.lang.Object
  extended by org.opends.server.core.RFC3672SubtreeSpecification.Refinement
      extended by org.opends.server.core.RFC3672SubtreeSpecification.ItemRefinement
Enclosing class:
RFC3672SubtreeSpecification

public static final class RFC3672SubtreeSpecification.ItemRefinement
extends RFC3672SubtreeSpecification.Refinement

RFC 3672 subtree specification Item refinement. This type of refinement filters entries based on the presence of a specified object class.


Constructor Summary
RFC3672SubtreeSpecification.ItemRefinement(java.lang.String objectClass)
          Create a new item refinement.
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 int hashCode()
          
 boolean matches(Entry entry)
          Check if the refinement matches the given entry.
 java.lang.StringBuilder toString(java.lang.StringBuilder builder)
          Append the string representation of the refinement to the provided string builder.
 
Methods inherited from class org.opends.server.core.RFC3672SubtreeSpecification.Refinement
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RFC3672SubtreeSpecification.ItemRefinement

public RFC3672SubtreeSpecification.ItemRefinement(java.lang.String objectClass)
Create a new item refinement.

Parameters:
objectClass - The item's object class.
Method Detail

matches

public boolean matches(Entry entry)
Check if the refinement matches the given entry.

Specified by:
matches in class RFC3672SubtreeSpecification.Refinement
Parameters:
entry - The filterable entry.
Returns:
Returns true if the entry matches the refinement, or false otherwise.

toString

public java.lang.StringBuilder toString(java.lang.StringBuilder builder)
Append the string representation of the refinement to the provided string builder.

Specified by:
toString in class RFC3672SubtreeSpecification.Refinement
Parameters:
builder - The string builder.
Returns:
The string builder.

equals

public boolean equals(java.lang.Object obj)

Specified by:
equals in class RFC3672SubtreeSpecification.Refinement

hashCode

public int hashCode()

Specified by:
hashCode in class RFC3672SubtreeSpecification.Refinement