Skip navigation links

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


oracle.iam.rm.server_api.model
Class StringPatternValidator

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

All Implemented Interfaces:
java.io.Serializable

public class StringPatternValidator
extends Validator

A validator that validates against a string pattern.

See Also:
Serialized Form

Constructor Summary
StringPatternValidator(java.lang.String violationMessage, java.lang.String pattern)
          Creates a StringPatternValidator.

 

Method Summary
 java.lang.String getPattern()
          Gets the pattern to validate against.
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

StringPatternValidator

public StringPatternValidator(java.lang.String violationMessage,
                              java.lang.String pattern)
Creates a StringPatternValidator.
Parameters:
violationMessage - message to use if the validation fails
pattern - String representing the pattern against which to validate the value (using the java.util.regex.Pattern class).

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 .

getPattern

public java.lang.String getPattern()
Gets the pattern to validate against.
Returns:
String representing the pattern to validate against.

Skip navigation links

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


Copyright © 2007, 2008 Oracle. All Rights Reserved.