Class SubstringFilter


  • public class SubstringFilter
    extends Filter
    A Object that stores the substring filter. A substring filter follow this grammar : substring = attr "=" ( ([initial] any [final] | (initial [any] [final) | ([initial] [any] final) ) initial = value any = "*" *(value "*") final = value
    Author:
    Apache Directory Project
    • Method Detail

      • addAnySubstrings

        public void addAnySubstrings​(String any)
        Add a internal substring
        Parameters:
        any - The anySubstrings to set.
      • setFinalSubstrings

        public void setFinalSubstrings​(String finalSubstrings)
        Set the final substring
        Parameters:
        finalSubstrings - The finalSubstrings to set.
      • setInitialSubstrings

        public void setInitialSubstrings​(String initialSubstrings)
        Set the initial substring
        Parameters:
        initialSubstrings - The initialSubstrings to set.
      • getType

        public String getType()
        Get the attribute
        Returns:
        Returns the type.
      • setType

        public void setType​(String type)
        Set the attribute to match
        Parameters:
        type - The type to set.
      • toString

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