org.apache.directory.shared.ldap.codec.search
Class PresentFilter

java.lang.Object
  extended by org.apache.directory.shared.ldap.codec.search.Filter
      extended by org.apache.directory.shared.ldap.codec.search.PresentFilter

public class PresentFilter
extends Filter

Object to store the filter. A filter is seen as a tree with a root.

Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.shared.ldap.codec.search.Filter
parent, parentTlvId
 
Constructor Summary
PresentFilter()
          The constructor.
PresentFilter(int tlvId)
          The constructor.
 
Method Summary
 int computeLength()
          Compute the PresentFilter length PresentFilter : 0x87 L1 present Length(PresentFilter) = Length(0x87) + Length(super.computeLength()) + super.computeLength()
 ByteBuffer encode(ByteBuffer buffer)
          Encode the PresentFilter message to a PDU.
 String getAttributeDescription()
          Get the attribute
 void setAttributeDescription(String attributeDescription)
          Set the attributeDescription
 String toString()
          Return a string compliant with RFC 2254 representing a Present filter
 
Methods inherited from class org.apache.directory.shared.ldap.codec.search.Filter
getParent, getParentTlvId, getTlvId, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PresentFilter

public PresentFilter(int tlvId)
The constructor.


PresentFilter

public PresentFilter()
The constructor.

Method Detail

getAttributeDescription

public String getAttributeDescription()
Get the attribute

Returns:
Returns the attributeDescription.

setAttributeDescription

public void setAttributeDescription(String attributeDescription)
Set the attributeDescription

Parameters:
attributeDescription - The attributeDescription to set.

computeLength

public int computeLength()
Compute the PresentFilter length PresentFilter : 0x87 L1 present Length(PresentFilter) = Length(0x87) + Length(super.computeLength()) + super.computeLength()

Specified by:
computeLength in class Filter

encode

public ByteBuffer encode(ByteBuffer buffer)
                  throws EncoderException
Encode the PresentFilter message to a PDU. PresentFilter : 0x87 LL attributeDescription

Specified by:
encode in class Filter
Parameters:
buffer - The buffer where to put the PDU
Returns:
The PDU.
Throws:
EncoderException

toString

public String toString()
Return a string compliant with RFC 2254 representing a Present filter

Overrides:
toString in class Object
Returns:
The Present filter string


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