public class BaseValidator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ValidationMessage.Source |
source |
| Constructor and Description |
|---|
BaseValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
fail(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
int line,
int col,
String path,
boolean thePass,
String msg)
Test a rule and add a
ValidationMessage.IssueSeverity.FATAL validation message if the validation fails |
protected boolean |
fail(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
List<String> pathParts,
boolean thePass,
String msg)
Test a rule and add a
ValidationMessage.IssueSeverity.FATAL validation message if the validation fails |
protected boolean |
fail(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
List<String> pathParts,
boolean thePass,
String theMessage,
Object... theMessageArguments)
Test a rule and add a
ValidationMessage.IssueSeverity.FATAL validation message if the validation fails |
protected boolean |
fail(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
String path,
boolean thePass,
String msg)
Test a rule and add a
ValidationMessage.IssueSeverity.FATAL validation message if the validation fails |
protected boolean |
grammarWord(String w) |
protected boolean |
hint(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
int line,
int col,
String path,
boolean thePass,
String msg)
Test a rule and add a
ValidationMessage.IssueSeverity.INFORMATION validation message if the validation fails |
protected boolean |
hint(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
int line,
int col,
String path,
boolean thePass,
String theMessage,
Object... theMessageArguments)
Test a rule and add a
ValidationMessage.IssueSeverity.INFORMATION validation message if the validation fails |
protected boolean |
hint(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
List<String> pathParts,
boolean thePass,
String theMessage,
Object... theMessageArguments)
Test a rule and add a
ValidationMessage.IssueSeverity.INFORMATION validation message if the validation fails |
protected boolean |
hint(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
String path,
boolean thePass,
String msg)
Test a rule and add a
ValidationMessage.IssueSeverity.INFORMATION validation message if the validation fails |
protected boolean |
rule(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
int line,
int col,
String path,
boolean thePass,
String theMessage,
Object... theMessageArguments)
Test a rule and add a
ValidationMessage.IssueSeverity.ERROR validation message if the validation fails |
protected boolean |
rule(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
List<String> pathParts,
boolean thePass,
String msg)
Test a rule and add a
ValidationMessage.IssueSeverity.ERROR validation message if the validation fails |
protected boolean |
rule(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
List<String> pathParts,
boolean thePass,
String theMessage,
Object... theMessageArguments)
Test a rule and add a
ValidationMessage.IssueSeverity.ERROR validation message if the validation fails |
protected boolean |
rule(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
String path,
boolean thePass,
String msg)
Test a rule and add a
ValidationMessage.IssueSeverity.ERROR validation message if the validation fails |
protected boolean |
rule(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
String path,
boolean thePass,
String msg,
String html)
Test a rule and add a
ValidationMessage.IssueSeverity.ERROR validation message if the validation fails |
static boolean |
rule(List<ValidationMessage> errors,
ValidationMessage.Source source,
ValidationMessage.IssueType type,
String path,
boolean thePass,
String msg) |
protected String |
splitByCamelCase(String s) |
protected String |
stripPunctuation(String s,
boolean numbers) |
protected boolean |
suppressedwarning(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
int line,
int col,
String path,
boolean thePass,
String msg,
Object... theMessageArguments)
Test a rule and add a
ValidationMessage.IssueSeverity.WARNING validation message if the validation fails |
protected boolean |
suppressedwarning(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
List<String> pathParts,
boolean thePass,
String theMessage,
Object... theMessageArguments)
Test a rule and add a
ValidationMessage.IssueSeverity.WARNING validation message if the validation fails |
protected boolean |
suppressedwarning(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
String path,
boolean thePass,
String msg)
Test a rule and add a
ValidationMessage.IssueSeverity.WARNING validation message if the validation fails |
protected boolean |
suppressedwarning(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
String path,
boolean thePass,
String msg,
String html)
Test a rule and add a
ValidationMessage.IssueSeverity.WARNING validation message if the validation fails |
protected boolean |
suppressedwarning(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
String path,
boolean thePass,
String msg,
String html,
Object... theMessageArguments)
Test a rule and add a
ValidationMessage.IssueSeverity.WARNING validation message if the validation fails |
protected boolean |
warning(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
int line,
int col,
String path,
boolean thePass,
String msg,
Object... theMessageArguments)
Test a rule and add a
ValidationMessage.IssueSeverity.WARNING validation message if the validation fails |
protected boolean |
warning(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
List<String> pathParts,
boolean thePass,
String theMessage,
Object... theMessageArguments)
Test a rule and add a
ValidationMessage.IssueSeverity.WARNING validation message if the validation fails |
protected boolean |
warning(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
String path,
boolean thePass,
String msg)
Test a rule and add a
ValidationMessage.IssueSeverity.WARNING validation message if the validation fails |
protected boolean |
warning(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
String path,
boolean thePass,
String msg,
String html)
Test a rule and add a
ValidationMessage.IssueSeverity.WARNING validation message if the validation fails |
protected boolean |
warning(List<ValidationMessage> errors,
ValidationMessage.IssueType type,
String path,
boolean thePass,
String msg,
String html,
Object... theMessageArguments)
Test a rule and add a
ValidationMessage.IssueSeverity.WARNING validation message if the validation fails |
protected boolean |
warningOrError(boolean isError,
List<ValidationMessage> errors,
ValidationMessage.IssueType type,
int line,
int col,
String path,
boolean thePass,
String msg,
Object... theMessageArguments) |
protected ValidationMessage.Source source
public BaseValidator()
protected boolean fail(List<ValidationMessage> errors, ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String msg)
ValidationMessage.IssueSeverity.FATAL validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean fail(List<ValidationMessage> errors, ValidationMessage.IssueType type, List<String> pathParts, boolean thePass, String msg)
ValidationMessage.IssueSeverity.FATAL validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean fail(List<ValidationMessage> errors, ValidationMessage.IssueType type, List<String> pathParts, boolean thePass, String theMessage, Object... theMessageArguments)
ValidationMessage.IssueSeverity.FATAL validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean fail(List<ValidationMessage> errors, ValidationMessage.IssueType type, String path, boolean thePass, String msg)
ValidationMessage.IssueSeverity.FATAL validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean grammarWord(String w)
protected boolean hint(List<ValidationMessage> errors, ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String msg)
ValidationMessage.IssueSeverity.INFORMATION validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean hint(List<ValidationMessage> errors, ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String theMessage, Object... theMessageArguments)
ValidationMessage.IssueSeverity.INFORMATION validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean hint(List<ValidationMessage> errors, ValidationMessage.IssueType type, List<String> pathParts, boolean thePass, String theMessage, Object... theMessageArguments)
ValidationMessage.IssueSeverity.INFORMATION validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean hint(List<ValidationMessage> errors, ValidationMessage.IssueType type, String path, boolean thePass, String msg)
ValidationMessage.IssueSeverity.INFORMATION validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean rule(List<ValidationMessage> errors, ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String theMessage, Object... theMessageArguments)
ValidationMessage.IssueSeverity.ERROR validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean rule(List<ValidationMessage> errors, ValidationMessage.IssueType type, List<String> pathParts, boolean thePass, String msg)
ValidationMessage.IssueSeverity.ERROR validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean rule(List<ValidationMessage> errors, ValidationMessage.IssueType type, List<String> pathParts, boolean thePass, String theMessage, Object... theMessageArguments)
ValidationMessage.IssueSeverity.ERROR validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean rule(List<ValidationMessage> errors, ValidationMessage.IssueType type, String path, boolean thePass, String msg)
ValidationMessage.IssueSeverity.ERROR validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)public static boolean rule(List<ValidationMessage> errors, ValidationMessage.Source source, ValidationMessage.IssueType type, String path, boolean thePass, String msg)
protected boolean rule(List<ValidationMessage> errors, ValidationMessage.IssueType type, String path, boolean thePass, String msg, String html)
ValidationMessage.IssueSeverity.ERROR validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected String splitByCamelCase(String s)
protected String stripPunctuation(String s, boolean numbers)
protected boolean warning(List<ValidationMessage> errors, ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String msg, Object... theMessageArguments)
ValidationMessage.IssueSeverity.WARNING validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean warningOrError(boolean isError, List<ValidationMessage> errors, ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String msg, Object... theMessageArguments)
protected boolean warning(List<ValidationMessage> errors, ValidationMessage.IssueType type, List<String> pathParts, boolean thePass, String theMessage, Object... theMessageArguments)
ValidationMessage.IssueSeverity.WARNING validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean warning(List<ValidationMessage> errors, ValidationMessage.IssueType type, String path, boolean thePass, String msg)
ValidationMessage.IssueSeverity.WARNING validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean warning(List<ValidationMessage> errors, ValidationMessage.IssueType type, String path, boolean thePass, String msg, String html)
ValidationMessage.IssueSeverity.WARNING validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean warning(List<ValidationMessage> errors, ValidationMessage.IssueType type, String path, boolean thePass, String msg, String html, Object... theMessageArguments)
ValidationMessage.IssueSeverity.WARNING validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean suppressedwarning(List<ValidationMessage> errors, ValidationMessage.IssueType type, int line, int col, String path, boolean thePass, String msg, Object... theMessageArguments)
ValidationMessage.IssueSeverity.WARNING validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean suppressedwarning(List<ValidationMessage> errors, ValidationMessage.IssueType type, List<String> pathParts, boolean thePass, String theMessage, Object... theMessageArguments)
ValidationMessage.IssueSeverity.WARNING validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean suppressedwarning(List<ValidationMessage> errors, ValidationMessage.IssueType type, String path, boolean thePass, String msg)
ValidationMessage.IssueSeverity.WARNING validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean suppressedwarning(List<ValidationMessage> errors, ValidationMessage.IssueType type, String path, boolean thePass, String msg, String html)
ValidationMessage.IssueSeverity.WARNING validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)protected boolean suppressedwarning(List<ValidationMessage> errors, ValidationMessage.IssueType type, String path, boolean thePass, String msg, String html, Object... theMessageArguments)
ValidationMessage.IssueSeverity.WARNING validation message if the validation failsthePass - Set this parameter to false if the validation does not passthePass (in other words, returns true if the rule did not fail validation)Copyright © 2014–2017 University Health Network. All rights reserved.