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
public class DoubleIntervalValidator extends AbstractNumberIntervalValidator<Double>
BaseContentValidator
validating the content by comparing one or more couples of double values.
-
-
Constructor Summary
Constructors Constructor Description DoubleIntervalValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
DoubleIntervalValidator
public DoubleIntervalValidator()
-
-
Method Detail
-
isLessThan
protected boolean isLessThan(Double n1, Double n2)
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.
-
-