|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jbo.rules.AbstractValidator
oracle.jbo.rules.JboAbstractValidator
oracle.jbo.rules.JboMethodValidator
public class JboMethodValidator
A validator that tests values by passing them to a validation method.
The validation method must be public,
take a single Object
parameter and return Boolean
.
Field Summary |
---|
Fields inherited from class oracle.jbo.rules.JboAbstractValidator |
---|
CLASS_INSTANCE, mValidatingAttr |
Fields inherited from class oracle.jbo.rules.AbstractValidator |
---|
m_children, m_props, mbInverse, mDescription, mErrorMessageClass, mMsgExpr, mMsgId, mMsgIds, mResourceBundleId, mTriggeringAttributeNames, mTriggeringAttributes, mValidatingAttrName |
Constructor Summary | |
---|---|
JboMethodValidator()
Creates a validator without assigning its validation method. |
Method Summary | |
---|---|
void |
endInit()
Creates a validator given the name of the validation method. |
java.lang.String |
getDefXMLElementTag()
|
java.lang.String |
getErrorMsgId()
|
java.lang.String |
getMethodName()
Gets the name of the method invoked by this validator. |
void |
initValidatorProperties(Map props)
|
protected void |
prepareException(java.lang.Class callingClass,
java.lang.String callingMethod,
ValidationException valEx,
JboValidatorContext evObj,
int severity)
|
void |
raiseException(java.lang.Class callingClass,
java.lang.String callingMethod,
java.lang.Exception e,
JboValidatorContext evObj,
java.lang.String msgId,
int severity)
|
void |
setMethodName(java.lang.String mthName)
Sets the name of the method invoked by this validator. |
void |
setTransactionLevel(boolean bTransactionLevel)
Gets the method invoked by this validator. |
java.lang.String |
toString()
Internal: For debugging purposes only. |
void |
validateMany(ArrayList valCtxs)
|
boolean |
validateValue(java.lang.Object value)
Validates a value. |
boolean |
validateValueWithContext(JboValidatorContext evObj,
java.lang.Object value)
Called internally by the framework with validation OnCondition is true or there is no validation OnCondition. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.jbo.rules.JboValidatorInterface |
---|
getDescription, setDescription, validate |
Methods inherited from interface oracle.jbo.rules.JboValidatorHints |
---|
isTransactionLevel |
Constructor Detail |
---|
public JboMethodValidator()
Method Detail |
---|
public void endInit()
endInit
in class JboAbstractValidator
methodName
- the name of a Java method. The method must be public,
take a single Object
parameter and return Boolean
.protected void prepareException(java.lang.Class callingClass, java.lang.String callingMethod, ValidationException valEx, JboValidatorContext evObj, int severity)
prepareException
in class AbstractValidator
public java.lang.String getErrorMsgId()
getErrorMsgId
in class JboAbstractValidator
public void validateMany(ArrayList valCtxs)
validateMany
in interface JboTransValidatorInterface
validateMany
in class JboAbstractValidator
public boolean validateValueWithContext(JboValidatorContext evObj, java.lang.Object value)
JboAbstractValidator
validateValueWithContext
in class JboAbstractValidator
public void raiseException(java.lang.Class callingClass, java.lang.String callingMethod, java.lang.Exception e, JboValidatorContext evObj, java.lang.String msgId, int severity)
raiseException
in class JboAbstractValidator
public boolean validateValue(java.lang.Object value)
JboAbstractValidator
Subclasses must implement this method.
validateValue
in class JboAbstractValidator
value
- the object to be validated.
true
if the object is valid.public void setMethodName(java.lang.String mthName)
mthName
- the name of a Java method. The method must be public,
take a single Object
parameter and return Boolean
.public java.lang.String getMethodName()
public void setTransactionLevel(boolean bTransactionLevel)
setTransactionLevel
in class AbstractValidator
public java.lang.String toString()
toString
in class java.lang.Object
public void initValidatorProperties(Map props)
initValidatorProperties
in interface JboValidatorHints
initValidatorProperties
in class AbstractValidator
public java.lang.String getDefXMLElementTag()
getDefXMLElementTag
in class JboAbstractValidator
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |