Package overit.geocall.util
Class StringFilter
java.lang.Object
overit.geocall.util.StringFilter
An include/exclude regular expressions mathing rule to be used against a string
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStringFilter(String includes) Creates a filter including some kind of filesStringFilter(String includes, String excludes) Creates a filter including some kind of files and among these files excluding some other -
Method Summary
-
Field Details
-
ANY
-
includes
-
excludes
-
key
-
-
Constructor Details
-
StringFilter
Creates a filter including some kind of files- Parameters:
includes- a regular expression defining inclusions. A null value leads to anlcude any
-
StringFilter
Creates a filter including some kind of files and among these files excluding some other- Parameters:
includes- a regular expression defining inclusions. A null value leads to anlcude anyexcludes- a regular expression defining exclusions. A null value leads to don't exclude any
-
-
Method Details
-
matches
The main matching method- Parameters:
name- the string to be checked against the filter- Returns:
- true if the fileter match the name, false otherwise
-
getKey
Returns an unique description of the filter, i/e a representation of the regular expressions- Returns:
- A string that represent an unique description of the filter, i/e a representation of the regular expressions
-