public class NotFilter extends ConnectorFilter
Constructor and Description |
---|
NotFilter()
The constructor.
|
NotFilter(int tlvId)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilter(Filter filter)
Subclass the addFilterMethod, as this is specific for a NotFilter (we
cannot have more than one elements).
|
int |
computeLength()
Compute the NotFilter length
NotFilter : |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the NotFilter message to a PDU.
|
Filter |
getNotFilter()
Get the NotFilter
|
void |
setNotFilter(Filter notFilter)
Set the NotFilter
|
String |
toString()
Return a string compliant with RFC 2254 representing a NOT filter
|
getFilterSet
getParent, getParentTlvId, getTlvId, setParent
public NotFilter(int tlvId)
tlvId
- The TLV identifierpublic NotFilter()
public void addFilter(Filter filter) throws DecoderException
addFilter
in class ConnectorFilter
filter
- The Filter to addDecoderException
- If the decoding failedpublic Filter getNotFilter()
public void setNotFilter(Filter notFilter) throws DecoderException
notFilter
- The notFilter to set.DecoderException
- If the NotFilter is already containing a filterpublic int computeLength()
0xA2 L1 super.computeLength() Length(NotFilter) = Length(0xA2) + Length(super.computeLength()) + super.computeLength()
computeLength
in class ConnectorFilter
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
0xA2 LL filter.encode()
encode
in class ConnectorFilter
buffer
- The buffer where to put the PDUEncoderException
- If the encoding failedpublic String toString()
toString
in class ConnectorFilter
Copyright © 2003–2021 The Apache Software Foundation. All rights reserved.