JIDE 3.5.15

com.jidesoft.utils
Class DefaultWildcardSupport

java.lang.Object
  extended by com.jidesoft.utils.AbstractWildcardSupport
      extended by 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.

See Also:
Serialized Form

Constructor Summary
DefaultWildcardSupport()
           
 
Method Summary
 char getOneOrMoreQuantifier()
          Gets the quantifier that indicates there is one or more of the preceding element.
 char getZeroOrMoreQuantifier()
          Gets the quantifier that indicates there is zero or more of the preceding element.
 char getZeroOrOneQuantifier()
          Gets the quantifier that indicates there is zero or one of the preceding element.
 
Methods inherited from class com.jidesoft.utils.AbstractWildcardSupport
convert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWildcardSupport

public DefaultWildcardSupport()
Method Detail

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.

JIDE 3.5.15