Interface SMStringWildcard
-
- All Superinterfaces:
SimilarityMeasure,SMString
- All Known Implementing Classes:
SMStringWildcardImpl
public interface SMStringWildcard extends SMString
Compares a query and case string, where the query can contain wildcards. Wildcards are a kind of regular expressions. Therefore they are implemented by using the regular expression syntax PERL5.Similarity
The wildcard query can only indicate, if an expression matches or doesn't match. So the similarity can only be 1 or 0.
For example
- If the query is "t*t" and the case is "test", then the similarity is 1. "*" can be replaced with the two arbitrary symbols "es".
- If the query is "t?t" and the case is "test", then the similarity is 0. "?" can only be replaced with one arbitrary symbol.
Supported Syntax
The query can contain wildcards like "*" and "?", that will be interpreted.
Wildcard Meaning * zero, one or more arbitrary symbols ? one arbitrary symbol Supported wildcards - Author:
- Rainer Maximini
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAME-
Fields inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
COMPONENT, COMPONENT_KEY, LOG_ORDER_NAME_NOT_FOUND
-
-
Method Summary
-
Methods inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
compute, getDataClass, getName, getSystemName, isForceOverride, isReusable, setForceOverride
-
-
-
-
Field Detail
-
NAME
static final String NAME
- See Also:
- Constant Field Values
-
-