Skip navigation links

Oracle Role Manager Java API Reference
10g (10.1.4)
E14613-01


oracle.iam.rm.server_api.model
Class NumericValidator

java.lang.Object
  extended by oracle.iam.rm.server_api.model.Validator
      extended by oracle.iam.rm.server_api.model.NumericValidator

All Implemented Interfaces:
java.io.Serializable

public class NumericValidator
extends Validator

A validator that validates against a number's value range.

See Also:
Serialized Form

Constructor Summary
NumericValidator(java.lang.String violationMessage, double minValue, double maxValue)
          Creates a NumericValidator.

 

Method Summary
 double getMaxValue()
          Gets the maximum value for the number.
 double getMinValue()
          Gets the minimum value for the number.
protected  boolean isValid(java.lang.Object value)
          Determines whether the provided value is valid according to this validator.

 

Methods inherited from class oracle.iam.rm.server_api.model.Validator
getViolationMessage, isRequired, validate

 

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

 

Constructor Detail

NumericValidator

public NumericValidator(java.lang.String violationMessage,
                        double minValue,
                        double maxValue)
Creates a NumericValidator.
Parameters:
violationMessage - message to use if the validation fails
minValue - minimum value for the number
maxValue - maximum value for the number

Method Detail

isValid

protected boolean isValid(java.lang.Object value)
Description copied from class: Validator
Determines whether the provided value is valid according to this validator.
Overrides:
isValid in class Validator
Parameters:
value - value to validate
Returns:
Boolean true if the value is valid, otherwise .

getMinValue

public double getMinValue()
Gets the minimum value for the number.
Returns:
double representing the minimum value for the number.

getMaxValue

public double getMaxValue()
Gets the maximum value for the number.
Returns:
double representing the maximum value for the number.

Skip navigation links

Oracle Role Manager Java API Reference
10g (10.1.4)
E14613-01


Copyright © 2008, 2009 Oracle. All Rights Reserved.