Package com.jidesoft.utils
Class AbstractWildcardSupport
- java.lang.Object
-
- com.jidesoft.utils.AbstractWildcardSupport
-
- All Implemented Interfaces:
WildcardSupport
,java.io.Serializable
- Direct Known Subclasses:
DefaultWildcardSupport
public abstract class AbstractWildcardSupport extends java.lang.Object implements WildcardSupport, java.io.Serializable
Abstract implementation ofWildcardSupport
. It implements the convert method but leave the other three methods defining the wildcards to the subclass.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractWildcardSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
convert(java.lang.String s)
Converts a string with wildcards to a regular express that is compatible withPattern
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.jidesoft.utils.WildcardSupport
getOneOrMoreQuantifier, getZeroOrMoreQuantifier, getZeroOrOneQuantifier
-
-
-
-
Method Detail
-
convert
public java.lang.String convert(java.lang.String s)
Description copied from interface:WildcardSupport
Converts a string with wildcards to a regular express that is compatible withPattern
. If the string has no wildcard, the same string will be returned.- Specified by:
convert
in interfaceWildcardSupport
- Parameters:
s
- a string with wildcards.- Returns:
- a regular express that is compatible with
Pattern
.
-
-