2024-10-09 22:01:19 +03:00
|
|
|
package _VisualDVM.Validators;
|
2023-09-17 22:13:42 +03:00
|
|
|
import Common.Utils.TextLog;
|
|
|
|
|
public class Validator {
|
|
|
|
|
protected char c;
|
|
|
|
|
protected int i;
|
|
|
|
|
protected String string_name;
|
|
|
|
|
protected char[] chars;
|
|
|
|
|
protected TextLog Log;
|
|
|
|
|
public Validator(String string, String string_name_in, TextLog log_in) {
|
|
|
|
|
string_name = string_name_in;
|
|
|
|
|
chars = string.toCharArray();
|
|
|
|
|
Log = log_in;
|
|
|
|
|
reset();
|
|
|
|
|
}
|
|
|
|
|
protected void reset() {
|
|
|
|
|
}
|
|
|
|
|
protected int getStartIndex() {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
protected boolean continueCondition() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
protected void Body() {
|
|
|
|
|
}
|
|
|
|
|
protected void PerformFinish() {
|
|
|
|
|
}
|
|
|
|
|
public void Validate() {
|
|
|
|
|
for (i = getStartIndex(); i < chars.length && continueCondition(); ++i) {
|
|
|
|
|
c = chars[i];
|
|
|
|
|
Body();
|
|
|
|
|
}
|
|
|
|
|
PerformFinish();
|
|
|
|
|
}
|
|
|
|
|
}
|