Class NotFilter

    • Constructor Detail

      • NotFilter

        public NotFilter​(int tlvId)
        The constructor.
        Parameters:
        tlvId - The TLV identifier
      • NotFilter

        public NotFilter()
        The constructor.
    • Method Detail

      • addFilter

        public void addFilter​(Filter filter)
                       throws DecoderException
        Subclass the addFilterMethod, as this is specific for a NotFilter (we cannot have more than one elements).
        Overrides:
        addFilter in class ConnectorFilter
        Parameters:
        filter - The Filter to add
        Throws:
        DecoderException - If the decoding failed
      • getNotFilter

        public Filter getNotFilter()
        Get the NotFilter
        Returns:
        Returns the notFilter.
      • setNotFilter

        public void setNotFilter​(Filter notFilter)
                          throws DecoderException
        Set the NotFilter
        Parameters:
        notFilter - The notFilter to set.
        Throws:
        DecoderException - If the NotFilter is already containing a filter
      • computeLength

        public int computeLength()
        Compute the NotFilter length
        NotFilter :
         
         0xA2 L1 super.computeLength()
         
         Length(NotFilter) = Length(0xA2) + Length(super.computeLength()) +
              super.computeLength()
         
        Overrides:
        computeLength in class ConnectorFilter
        Returns:
        The encoded length
      • toString

        public String toString()
        Return a string compliant with RFC 2254 representing a NOT filter
        Overrides:
        toString in class ConnectorFilter
        Returns:
        The NOT filter string