|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jbo.rules.AbstractValidator
The superclass for all pre-defined validators.
This class implements the basic functionality of storing the value
of either an attribute to be validated, or the entity or application module
reference on which validation is to be invoked.
Subclasses must provide validateValue
, which performs the actual
validation test.
Field Summary | |
protected boolean |
mbInverse
|
protected java.lang.String |
mDescription
|
protected java.lang.Class |
mErrorMessageClass
|
protected java.lang.String |
mMsgId
|
protected java.lang.String |
mValidatingAttrName
|
Constructor Summary | |
AbstractValidator()
|
Method Summary | |
java.lang.Object |
convertToJava(AttributeDef attrDef,
java.lang.Object val)
|
java.lang.String |
getDescription()
Gets the textul description of this validator. |
java.lang.Class |
getErrorMessageClass()
|
java.lang.String |
getErrorMsgId()
|
boolean |
getInverse()
Reports whether the logic of this validator is inverted. |
java.lang.String |
getValidatingAttributeName()
|
void |
setDescription(java.lang.String description)
Sets the textul description of this validator using a specified string. |
void |
setErrorMessageClass(java.lang.Class clz)
|
void |
setErrorMsgId(java.lang.String msgId)
|
void |
setInverse(boolean bInverse)
Allows the logic of this validator to be inverted. |
void |
setValidatingAttributeName(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean mbInverse
protected java.lang.String mDescription
protected java.lang.String mMsgId
protected java.lang.Class mErrorMessageClass
protected java.lang.String mValidatingAttrName
Constructor Detail |
public AbstractValidator()
Method Detail |
public void setErrorMessageClass(java.lang.Class clz)
public java.lang.Class getErrorMessageClass()
public java.lang.Object convertToJava(AttributeDef attrDef, java.lang.Object val)
public void setInverse(boolean bInverse)
bInverse
- true
if the validation result is to be inverted,
and false
if the validation result is not to be inverted.public boolean getInverse()
true
if the validation result is inverted, and
false
if the validation result is not inverted.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- a documentation string.public java.lang.String getErrorMsgId()
public void setErrorMsgId(java.lang.String msgId)
public void setValidatingAttributeName(java.lang.String name)
public java.lang.String getValidatingAttributeName()
|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.