Interface UriValidator
- All Superinterfaces:
ObjectComponent<UriValidator,
,URI> ValidatorComponent<UriValidator,
URI>
public interface UriValidator
extends ValidatorComponent<UriValidator,URI>, ObjectComponent<UriValidator,URI>
Validates the state of a
URI
.-
Method Summary
Methods declared in interface com.github.cowwoc.requirements10.java.validator.component.ObjectComponent
getValue, isEqualTo, isEqualTo, isInstanceOf, isInstanceOf, isNotEqualTo, isNotEqualTo, isNotInstanceOf, isNotInstanceOf, isNotNull, isNull, isReferenceEqualTo, isReferenceNotEqualTo
Methods declared in interface com.github.cowwoc.requirements10.java.validator.component.ValidatorComponent
and, elseGetFailures, elseThrow, getContext, getContextAsString, getName, getValueOrDefault, validationFailed, withContext
-
Method Details
-
isAbsolute
UriValidator isAbsolute()Ensures that the URI is absolute.- Returns:
- this
- Throws:
NullPointerException
- if the value is nullIllegalArgumentException
- if the URI is relative
-