Skip navigation links

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


oracle.iam.rm.server_api.model
Class StringLengthValidator

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

All Implemented Interfaces:
java.io.Serializable

public class StringLengthValidator
extends Validator

A validator that validates against a string's length.

See Also:
Serialized Form

Constructor Summary
StringLengthValidator(java.lang.String violationMessage, int minLength, int maxLength)
          Creates a StringLengthValidator.

 

Method Summary
 int getMaxLength()
          Gets the maximum length of the string.
 int getMinLength()
          Gets the minimum length of the string.
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

StringLengthValidator

public StringLengthValidator(java.lang.String violationMessage,
                             int minLength,
                             int maxLength)
Creates a StringLengthValidator.
Parameters:
violationMessage - message to use if the validation fails
minLength - minimum length of the string
maxLength - maximum length of the string

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 .

getMinLength

public int getMinLength()
Gets the minimum length of the string.
Returns:
int representing the minimum length of the string.

getMaxLength

public int getMaxLength()
Gets the maximum length of the string.
Returns:
int representing the maximum length of the string.

Skip navigation links

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


Copyright © 2008, 2009 Oracle. All Rights Reserved.