Skip navigation links

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


oracle.iam.rm.server_api.model
Class CompositeValidator

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

All Implemented Interfaces:
java.io.Serializable

public class CompositeValidator
extends Validator

A validator that can contain other validators.

See Also:
Serialized Form

Constructor Summary
CompositeValidator(Validator[] validators)
          Creates a CompositeValidator.

 

Method Summary
 Validator[] getValidators()
          Gets the validators that constitute this composite validator.
 boolean isRequired()
          Determines whether this value is required.
protected  boolean isValid(java.lang.Object value)
          Determines whether the provided value is valid according to this validator.
 java.lang.String validate(java.lang.Object value)
          Validates the value based on the constraint represented by this validator.

 

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

 

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

 

Constructor Detail

CompositeValidator

public CompositeValidator(Validator[] validators)
Creates a CompositeValidator.
Parameters:
validators - array of validators that constitute this composite validator.

Method Detail

validate

public java.lang.String validate(java.lang.Object value)
Description copied from class: Validator
Validates the value based on the constraint represented by this validator.
Overrides:
validate in class Validator
Parameters:
value - Object representing the value to validate
Returns:
null if the value is valid or a localized validation problem message if the value is invalid

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 .

getValidators

public Validator[] getValidators()
Gets the validators that constitute this composite validator.
Returns:
Array of validators that constitute this composite validator.

isRequired

public boolean isRequired()
Description copied from class: Validator
Determines whether this value is required.
Overrides:
isRequired in class Validator
Returns:
Boolean true if this value is required, otherwise .

Skip navigation links

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


Copyright © 2008, 2009 Oracle. All Rights Reserved.