public class AttributeValueAssertionFilter extends Filter
parent, parentTlvId
Constructor and Description |
---|
AttributeValueAssertionFilter(int filterType)
The constructor.
|
AttributeValueAssertionFilter(int tlvId,
int filterType)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
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
|
ByteBuffer |
encode(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
|
String |
toString()
Return a string compliant with RFC 2254 representing an item filter
|
getParent, getParentTlvId, getTlvId, setParent
public AttributeValueAssertionFilter(int tlvId, int filterType)
filterType
- The filter typepublic AttributeValueAssertionFilter(int filterType)
filterType
- The filter typepublic 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()
computeLength
in class Filter
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in class Filter
buffer
- The buffer where to put the PDUEncoderException
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.