Skip navigation links

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


oracle.iam.rm.server_api.model
Class WhitespaceValidator

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

All Implemented Interfaces:
java.io.Serializable

public class WhitespaceValidator
extends Validator

A validator that validates against a string's whitespace.

See Also:
Serialized Form

Constructor Summary
WhitespaceValidator(java.lang.String violationMessage, boolean allowLeadingSpaces, boolean allowTrailingSpaces)
          Creates a WhitespaceValidator.

 

Method Summary
 boolean isAllowLeadingSpaces()
          Gets whether leading spaces are valid.
 boolean isAllowTrailingSpaces()
          Gets whether trailing spaces are valid.
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

WhitespaceValidator

public WhitespaceValidator(java.lang.String violationMessage,
                           boolean allowLeadingSpaces,
                           boolean allowTrailingSpaces)
Creates a WhitespaceValidator.
Parameters:
violationMessage - message to use if the validation fails
allowLeadingSpaces - flag for whether leading spaces are valid
allowTrailingSpaces - flag for whether trailing spaces are valid

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 .

isAllowLeadingSpaces

public boolean isAllowLeadingSpaces()
Gets whether leading spaces are valid.
Returns:
Boolean true if leading spaces are valid, otherwise false.

isAllowTrailingSpaces

public boolean isAllowTrailingSpaces()
Gets whether trailing spaces are valid.
Returns:
Boolean true if trailing spaces are valid, otherwise false.

Skip navigation links

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


Copyright © 2008, 2009 Oracle. All Rights Reserved.