Class DefaultWildcardSupport

java.lang.Object
com.jidesoft.utils.AbstractWildcardSupport
com.jidesoft.utils.DefaultWildcardSupport
All Implemented Interfaces:
WildcardSupport, Serializable

public class DefaultWildcardSupport extends AbstractWildcardSupport
Default implementation of WildcardSupport. It uses the following three chars as the wildcards.
  • '?' The question mark indicates there is exact one of missing element. For example, colo?r matches "colour" but not "color" or "colouur".
  • '*' The asterisk indicates there are zero or more of the missing elements. For example, ab*c matches "abc", "abbc", "abdbc", and so on.
  • '+' The plus sign indicates there are at least one of the missing elements. For example, ab+c matches "abbc", "abdbc", but not "abc".
See Also:
  • Constructor Details

    • DefaultWildcardSupport

      public DefaultWildcardSupport()
  • Method Details

    • getZeroOrOneQuantifier

      public char getZeroOrOneQuantifier()
      Description copied from interface: WildcardSupport
      Gets the quantifier that indicates there is zero or one of the preceding element. Usually '?', the question mark is used for this quantifier. For example, colou?r matches both "color" and "colour".
      Returns:
      the quantifier that indicates there is zero or one of the preceding element.
    • getZeroOrMoreQuantifier

      public char getZeroOrMoreQuantifier()
      Description copied from interface: WildcardSupport
      Gets the quantifier that indicates there is zero or more of the preceding element. Usually '*', the asterisk is used for this quantifier. For example, ab*c matches "ac", "abc", "abbc", "abbbc", and so on.
      Returns:
      the quantifier that indicates there is zero or more of the preceding element.
    • getOneOrMoreQuantifier

      public char getOneOrMoreQuantifier()
      Description copied from interface: WildcardSupport
      Gets the quantifier that indicates there is one or more of the preceding element. Usually '+', the plus sign is used for this quantifier. For example, ab+c matches "abc", "abbc", "abbbc", and so on, but not "ac".
      Returns:
      the quantifier that indicates there is one or more of the preceding element.