Class DoubleIntervalValidator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.cms.contenttype.validation.AbstractContentValidator
org.ametys.cms.contenttype.validation.AbstractIntervalValidator<T>
org.ametys.cms.contenttype.validation.AbstractNumberIntervalValidator<Double>
org.ametys.cms.contenttype.validation.DoubleIntervalValidator
- All Implemented Interfaces:
ContentValidator
,Configurable
,LogEnabled
Base
ContentValidator
validating the content by comparing one or more couples of double values.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isLessThan
(Double n1, Double n2) Test if the first number is less than the second one.Methods inherited from class org.ametys.cms.contenttype.validation.AbstractNumberIntervalValidator
addErrorEmpty, addIntervalError, configureMaxPath, configureMinPath, isSupportedType
Methods inherited from class org.ametys.cms.contenttype.validation.AbstractIntervalValidator
_validateInterval, configure, validate, validate
Methods inherited from class org.ametys.cms.contenttype.validation.AbstractContentValidator
getContentType, setContentType
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
DoubleIntervalValidator
public DoubleIntervalValidator()
-
-
Method Details
-
isLessThan
Description copied from class:AbstractIntervalValidator
Test if the first number is less than the second one.- Specified by:
isLessThan
in classAbstractIntervalValidator<Double>
- Parameters:
n1
- The first number to compare.n2
- The second number to compare.- Returns:
- true if the first number is less than the first, false otherwise.
-