Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-05


oracle.wcps.property.validator
Class IntRangeValidator

java.lang.Object
  extended by 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.


Field Summary

 

Fields inherited from interface oracle.wcps.property.IValidator
NULL

 

Constructor Summary
IntRangeValidator()
           

 

Method Summary
 void validate(IProperty<java.lang.Integer> property, IPropertyDefinition propertyDefinition, java.lang.String validatorValue)
          Validates the given property's value.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

IntRangeValidator

public IntRangeValidator()

Method Detail

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

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-05


Copyright © 2009, 2012, Oracle and/or its affiliates. All rights reserved.