Class Filter
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.search.Filter
-
- Direct Known Subclasses:
AttributeValueAssertionFilter,ConnectorFilter,ExtensibleMatchFilter,PresentFilter,SubstringFilter
public abstract class Filter extends Object
An abstract Asn1Object used to store the filter. A filter is seen as a tree with a root. This class does nothing, it's just the root of all the different filters.- Author:
- Apache Directory Project
-
-
Field Summary
Fields Modifier and Type Field Description protected FilterparentThe parent Filterprotected intparentTlvIdThe parent TLV id(package private) inttlvIdThe identifier of the associated TLV
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract intcomputeLength()Compute the Filter lengthabstract ByteBufferencode(ByteBuffer buffer)Encode the Filter message to a PDU.FiltergetParent()Get the parentintgetParentTlvId()Get the parentintgetTlvId()voidsetParent(Filter parent, int parentTlvId)Set the parent
-
-
-
Field Detail
-
tlvId
int tlvId
The identifier of the associated TLV
-
parentTlvId
protected int parentTlvId
The parent TLV id
-
parent
protected Filter parent
The parent Filter
-
-
Method Detail
-
getParent
public Filter getParent()
Get the parent- Returns:
- Returns the parent.
-
getParentTlvId
public int getParentTlvId()
Get the parent- Returns:
- Returns the parent.
-
setParent
public void setParent(Filter parent, int parentTlvId)
Set the parent- Parameters:
parent- The parent to set.parentTlvId- The Parent TLV identifier
-
getTlvId
public int getTlvId()
- Returns:
- The TLV identifier
-
computeLength
public abstract int computeLength()
Compute the Filter length- Returns:
- the encoded length
-
encode
public abstract ByteBuffer encode(ByteBuffer buffer) throws EncoderException
Encode the Filter message to a PDU.- Parameters:
buffer- The buffer where to put the PDU- Returns:
- The PDU.
- Throws:
EncoderException- If the encoding failed
-
-