|
Oracle Role Manager Java API Reference 10g (10.1.4) E12031-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.iam.rm.server_api.model.Validator
public class Validator
A generic validator for arguments and attributes.
Constructor Summary | |
---|---|
|
Validator() Creates a "blanket" validator. |
protected |
Validator(java.lang.String violationMessage) Creates a validator with the provided violation message. |
Method Summary | |
---|---|
protected java.lang.String |
getViolationMessage() Gets the violation message to use if the validation fails. |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Validator()
protected Validator(java.lang.String violationMessage)
violationMessage
- violation message to use if the validation failsMethod Detail |
---|
public java.lang.String validate(java.lang.Object value)
value
- Object
representing the value to validateprotected boolean isValid(java.lang.Object value)
value
- value to validatetrue
if the value is valid, otherwise .public boolean isRequired()
true
if this value is required, otherwise .protected java.lang.String getViolationMessage()
String
representing the violation message to use if the validation fails.
|
Oracle Role Manager Java API Reference 10g (10.1.4) E12031-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |