Skip navigation links
oracle.wcps.property.validator
Class IntRangeValidator
java.lang.Object
oracle.wcps.property.validator.IntRangeValidator
- All Implemented Interfaces:
- IValidator<java.lang.Integer>
-
public class IntRangeValidator
- extends java.lang.Object
- implements IValidator<java.lang.Integer>
Validates if an integer is within a given range (min-max value). The range is set as a validator value in IPropertyDefinition
as "min,max" string. If the validator value is invalid the range is set to Integer.MIN_VALUE
,Integer.MAX_VALUE
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntRangeValidator
public IntRangeValidator()
validate
public void validate(IProperty<java.lang.Integer> property,
IPropertyDefinition propertyDefinition,
java.lang.String validatorValue)
throws ValidationFailedException
- Description copied from interface:
IValidator
- Validates the given property's value.
-
- Specified by:
validate
in interface IValidator<java.lang.Integer>
-
- Parameters:
property
- a property to be validated.
propertyDefinition
- the propertydefinition for the given property.
validatorValue
- an extra value to use in validation.
- Throws:
ValidationFailedException
- if validation fails.
Skip navigation links
Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.