com.jidesoft.utils
Class DefaultWildcardSupport
java.lang.Object
com.jidesoft.utils.AbstractWildcardSupport
com.jidesoft.utils.DefaultWildcardSupport
- All Implemented Interfaces:
- WildcardSupport, java.io.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 zero or one of the preceding element. For example, colou?r matches both "color" and "colour".
- '*' The asterisk indicates there are zero or more of the preceding element. For example, ab*c matches "ac", "abc", "abbc", "abbbc", and so on.
- '+' The plus sign indicates that there is one or more of the preceding element. For example, ab+c matches "abc", "abbc", "abbbc", and so on, but not "ac".
- See Also:
- Serialized Form
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultWildcardSupport
public DefaultWildcardSupport()
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.