Class PresentFilter

    • Constructor Detail

      • PresentFilter

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

        public PresentFilter()
        The constructor.
    • Method Detail

      • getAttributeDescription

        public String getAttributeDescription()
        Get the attribute
        Returns:
        Returns the attributeDescription.
      • setAttributeDescription

        public void setAttributeDescription​(String attributeDescription)
        Set the attributeDescription
        Parameters:
        attributeDescription - The attributeDescription to set.
      • computeLength

        public int computeLength()
        Compute the PresentFilter length
        PresentFilter :
         
         0x87 L1 present
         
         Length(PresentFilter) = Length(0x87) + Length(super.computeLength()) +
              super.computeLength()
         
        Specified by:
        computeLength in class Filter
        Returns:
        The encoded length
      • encode

        public ByteBuffer encode​(ByteBuffer buffer)
                          throws EncoderException
        Encode the PresentFilter message to a PDU. PresentFilter : 0x87 LL attributeDescription
        Specified by:
        encode in class Filter
        Parameters:
        buffer - The buffer where to put the PDU
        Returns:
        The PDU.
        Throws:
        EncoderException - If the encoding failed
      • toString

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