- All Known Implementing Classes:
Email
,HttpAccessConstraints
,NetworkAccessConstraints
,SwitchParser
public interface Validatable
- Author:
- jonathanl (shibo)
- See Also:
Validator
,ValidationType
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
isValid()
Determines if this object is valid by using the default validatordefault boolean
Determines if this object is valid by using the default validatordefault Validator
validator(ValidationType type)
-
Method Details
-
isValid
default boolean isValid()Determines if this object is valid by using the default validator- See Also:
Validator.validate()
-
validator
- Returns:
- A validator for full validation, if any. Although it cannot be final, this method should not be
overridden. Instead, override
validator(ValidationType)
-