Class UrlValidatorImpl
java.lang.Object
ch.tocco.nice2.validate.api.validators.AbstractValidator
ch.tocco.nice2.validate.api.validators.UrlValidatorImpl
- All Implemented Interfaces:
UrlValidator,Validator,ValueValidator,Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.validate.api.validators.Validator
Validator.MergeMode -
Field Summary
Fields inherited from class ch.tocco.nice2.validate.api.validators.AbstractValidator
doContinue, level, name, negate, runOn -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FieldValidationResultbooleanTells if the constraint data of this validator can be merged with another instance.Class<? extends ValueValidator> getType()protected booleanIf subclass overwrites and returns true then the validate() method won't do it anymore.voidinit()Methods inherited from class ch.tocco.nice2.validate.api.validators.AbstractValidator
clone, doContinueOnFailure, doNegate, getErrorStatusByLevel, getLevel, getName, getRunOn, hasName, isEmptySoIgnore, mergeConstraints, negateResultIfNeeded, setContinue, setLevel, setName, setNegate, setRunOn, validateMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.tocco.nice2.validate.api.validators.Validator
clone, doContinueOnFailure, doNegate, getLevel, getName, getRunOn, hasName, mergeConstraints, setContinue, setLevel, setName, setNegate, setRunOn, validate
-
Constructor Details
-
UrlValidatorImpl
public UrlValidatorImpl()
-
-
Method Details
-
init
public void init()- Specified by:
initin interfaceUrlValidator
-
_validate
protected FieldValidationResult _validate(Object value, Map<String, Object> fields) throws IllegalArgumentException- Specified by:
_validatein classAbstractValidator- Throws:
IllegalArgumentException
-
iNegateMyself
protected boolean iNegateMyself()Description copied from class:AbstractValidatorIf subclass overwrites and returns true then the validate() method won't do it anymore. That's preferred for implementing validators (not groups).- Overrides:
iNegateMyselfin classAbstractValidator- See Also:
-
canMergeConstraints
public boolean canMergeConstraints()Description copied from interface:ValidatorTells if the constraint data of this validator can be merged with another instance.This is validator-type specific. For example a date range validator can, a regex validator obviously cannot.
- Specified by:
canMergeConstraintsin interfaceValidator- See Also:
-
getType
-