|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.asn1.Asn1Object
org.apache.directory.shared.ldap.codec.search.Filter
org.apache.directory.shared.ldap.codec.search.AttributeValueAssertionFilter
Object to store the filter. A filter is seen as a tree with a root.
Field Summary |
Fields inherited from class org.apache.directory.shared.asn1.Asn1Object |
parent |
Constructor Summary | |
AttributeValueAssertionFilter(int filterType)
The constructor. |
Method Summary | |
int |
computeLength()
Compute the AttributeValueFilter length AttributeValueFilter : 0xA(3, 5, 6, 8) L1 | +--> 0x04 L2 attributeDesc +--> 0x04 L3 assertionValue L2 = Length(attributeDesc) L3 = Length(assertionValue) L1 = 1 + Length(L2) + L2 + 1 + Length(L3) + L3 Length(AttributeValueFilter) = Length(0xA?) + Length(L1) + 1 + Length(L2) + L2 + 1 + Length(L3) + L3 |
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the AttributeValueAssertion Filters to a PDU. |
AttributeValueAssertion |
getAssertion()
Get the assertion |
int |
getFilterType()
Get the filter type |
void |
setAssertion(AttributeValueAssertion assertion)
Set the assertion |
void |
setFilterType(int filterType)
Set the filter type |
java.lang.String |
toString()
Return a string compliant with RFC 2254 representing an item filter |
Methods inherited from class org.apache.directory.shared.asn1.Asn1Object |
addLength, getCurrentLength, getExpectedLength, getParent, setCurrentLength, setExpectedLength, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AttributeValueAssertionFilter(int filterType)
filterType
- DOCUMENT ME!Method Detail |
public AttributeValueAssertion getAssertion()
public void setAssertion(AttributeValueAssertion assertion)
assertion
- The assertion to set.public int getFilterType()
public void setFilterType(int filterType)
filterType
- The filterType to set.public int computeLength()
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer) throws org.apache.directory.shared.asn1.codec.EncoderException
buffer
- The buffer where to put the PDU
org.apache.directory.shared.asn1.codec.EncoderException
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |