Interface Validating
public interface Validating
Interface for things that are able to validate themselves, such as
email addresses.
Something which is Validating is a wrapper for some data which
can determine, to some degree of accuracy, whether that data is probably
usable or definitely not usable.
Basically, this allows us to do what
java.net.URL cannot:
Construct an object which may or may not be valid, without necessarily
imposing immediate data validation on it - validation is possible, but
it is done by the thing which actually needs the data to be valid (and
it can also chose to silently ignore or fail on invalid elements depending
on the use-case).- Author:
- Tim Boudreau
-
Method Summary
-
Method Details
-
getProblems
Problems getProblems() -
isValid
boolean isValid()
-