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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract int
computeLength()
Compute the Filter lengthabstract ByteBuffer
encode(ByteBuffer buffer)
Encode the Filter message to a PDU.Filter
getParent()
Get the parentint
getParentTlvId()
Get the parentint
getTlvId()
void
setParent(Filter parent, int parentTlvId)
Set the parent
-
-
-
Method Detail
-
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
-
-