|
static int | LevenshteinDistance (String a, String b) |
|
static boolean | LevenshteinMatch (String fpsActuell, String fpsExpected, int fpiDistance) |
|
static boolean | LevenshteinMatch (ArrayList< String > fpALActuell, ArrayList< String > fpALExpected, int fpiDistance) |
|
static boolean | WildcardMatch (String fpsActuell, String fpsExpected) |
|
static boolean | WildcardMatch (ArrayList< String > fpALActuell, ArrayList< String > fpALExpected) |
|
static boolean | RegexMatch (String fpsActuell, String fpsExpectedRegex) |
|
static boolean | RegexMatch (ArrayList< String > fpALActuell, ArrayList< String > fpALExpected) |
|
Definiert in Zeile 41 der Datei Matcher.java.
◆ LevenshteinMatch()
static boolean okw.core.Matcher.LevenshteinMatch |
( |
ArrayList< String > |
fpALActuell, |
|
|
ArrayList< String > |
fpALExpected, |
|
|
int |
fpiDistance |
|
) |
| |
|
static |
- Parameter
-
fpsActuell | Text to test |
fpsExpected | (Wildcard) pattern to test |
- Rückgabe
- True if the text matches the LevenshteinMatch pattern
Definiert in Zeile 83 der Datei Matcher.java.
85 boolean lvb_Return =
true;
87 Integer ActualSize = (Integer)fpALActuell.size();
88 Integer ExpectedSize = (Integer)fpALExpected.size();
90 if( ActualSize.equals( ExpectedSize ))
93 for (
int i = 0; i < fpALActuell.size(); i++)
95 if ( ! Matcher.LevenshteinMatch(fpALActuell.get(i), fpALExpected.get(i), fpiDistance ) )
◆ RegexMatch()
static boolean okw.core.Matcher.RegexMatch |
( |
ArrayList< String > |
fpALActuell, |
|
|
ArrayList< String > |
fpALExpected |
|
) |
| |
|
static |
- Parameter
-
fpsActuell | Text to test |
fpsExpected | (Wildcard) pattern to test |
- Rückgabe
- True if the text matches the wildcard pattern
Definiert in Zeile 173 der Datei Matcher.java.
175 boolean lvb_Return =
true;
177 Integer ActualSize = (Integer)fpALActuell.size();
178 Integer ExpectedSize = (Integer)fpALExpected.size();
180 if( ActualSize.equals( ExpectedSize ))
183 for (
int i = 0; i < fpALActuell.size(); i++)
185 if ( ! Matcher.RegexMatch(fpALActuell.get(i), fpALExpected.get(i)) )
◆ WildcardMatch() [1/2]
static boolean okw.core.Matcher.WildcardMatch |
( |
ArrayList< String > |
fpALActuell, |
|
|
ArrayList< String > |
fpALExpected |
|
) |
| |
|
static |
- Parameter
-
fpsActuell | Text to test |
fpsExpected | (Wildcard) pattern to test |
- Rückgabe
- True if the text matches the wildcard pattern
Definiert in Zeile 131 der Datei Matcher.java.
133 boolean lvb_Return =
true;
135 Integer ActualSize = (Integer)fpALActuell.size();
136 Integer ExpectedSize = (Integer)fpALExpected.size();
138 if( ActualSize.equals( ExpectedSize ))
141 for (
int i = 0; i < fpALActuell.size(); i++)
143 if ( ! Matcher.WildcardMatch(fpALActuell.get(i), fpALExpected.get(i)) )
◆ WildcardMatch() [2/2]
static boolean okw.core.Matcher.WildcardMatch |
( |
String |
fpsActuell, |
|
|
String |
fpsExpected |
|
) |
| |
|
static |
- Parameter
-
fpsActuell | Text to test |
fpsExpected | (Wildcard) pattern to test |
- Rückgabe
- True if the text matches the wildcard pattern
Definiert in Zeile 116 der Datei Matcher.java.
118 boolean lvb_Return =
false;
120 lvb_Return = fpsActuell.matches(fpsExpected.replace(
"?",
".").replace(
"*",
".*").replace(
"#",
"\\d"));
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:
- /home/travis/build/Hrabovszki1023/OKW/core/src/main/java/okw/core/Matcher.java