AbstractProtectedconstructorCreates a new instance.
the application configuration
the configuration to use for new validators
AbstractcopyReturns a new factory instance with an independent configuration. This method is commonly used to inherit and update contextual information from the original factory before passing it into a nested operation. For example,
JavascriptValidators copy = validators.copy();
copy.getContext().put(json.toString(), "json");
nestedOperation(copy);
a copy of this factory
ProtectedgetReturns the configuration for assertThat factory methods.
the configuration for assertThat factory methods
ProtectedgetReturns the configuration for checkIf factory methods.
the configuration for checkIf factory methods
Returns the contextual information inherited by validators created out by this factory. The contextual
information is a map of key-value pairs that can provide more details about validation failures. For
example, if the message is "Password may not be empty" and the map contains the key-value pair
{"username": "john.smith"}, the error message would be:
Password may not be empty
username: john.smith
an unmodifiable map from each entry's name to its value
Returns the global configuration shared by all validators.
NOTE: Updating this configuration affects existing and new validators.
the global configuration updater
the application configuration
AbstractremoveSet the configuration used by new validators.
the updated configuration
AbstractwithSets the contextual information for validators created by this factory.
This method adds contextual information to error messages. The contextual information is stored as key-value pairs in a map. Values set by this method may be overridden by ValidatorComponent.withContext.
the value of the entry
the name of an entry
this
the type of the validator factory