Skip navigation links

Oracle Role Manager Java API Reference
10g (10.1.4)
E12031-02


oracle.iam.rm.server_api.model
Class EnumeratedValueValidator

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

All Implemented Interfaces:
java.io.Serializable

public class EnumeratedValueValidator
extends Validator

A validator that constrains the possible values to a defined set.

See Also:
Serialized Form

Nested Class Summary
static class EnumeratedValueValidator.NameValuePair
          A key/value pair representing the values supported by the validator.

 

Constructor Summary
EnumeratedValueValidator(java.lang.String violationMessage, EnumeratedValueValidator.NameValuePair[] values)
          Creates an EnumeratedValueValidator.

 

Method Summary
 EnumeratedValueValidator.NameValuePair[] getValues()
          Gets the values that are supported by this validator.
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

EnumeratedValueValidator

public EnumeratedValueValidator(java.lang.String violationMessage,
                                EnumeratedValueValidator.NameValuePair[] values)
Creates an EnumeratedValueValidator.
Parameters:
violationMessage - message to use if the validation fails
values - values that are supported by this validator

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 .

getValues

public EnumeratedValueValidator.NameValuePair[] getValues()
Gets the values that are supported by this validator.
Returns:
Array of name-value pairs representing the values that are supported by this validator.

Skip navigation links

Oracle Role Manager Java API Reference
10g (10.1.4)
E12031-02


Copyright © 2007, 2008 Oracle. All Rights Reserved.