|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.jbo.common.NamedObjectImpl
oracle.jbo.rules.AbstractValidator
oracle.jbo.server.rules.JboBaseValidator
oracle.jbo.server.rules.JboListValidator
public class JboListValidator
A validator that tests for the presence of a literal value in a list of pre-defined values.
| Field Summary |
|---|
| Fields inherited from class oracle.jbo.server.rules.JboBaseValidator |
|---|
mBindingStyle, mValidatingAttr, mValidatingAttrName |
| Fields inherited from class oracle.jbo.rules.AbstractValidator |
|---|
mbInverse, mDescription, mErrorMessageClass, mMsgExpr, mMsgId, mMsgIds, mResourceBundleId, mTriggeringAttributeNames, mTriggeringAttributes |
| Fields inherited from class oracle.jbo.common.NamedObjectImpl |
|---|
mFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX |
| Constructor Summary | |
|---|---|
JboListValidator()Creates an uninitialized list validator. |
|
JboListValidator(boolean inverse, java.util.Vector vec)Creates a list validator. |
|
| Method Summary | |
|---|---|
static java.util.Vector |
convertToVector(java.lang.String listVal)Converts a string representation of values to a vector. |
java.util.Vector |
getList()Gets this validator's list of comparison values. |
void |
loadXMLContents(DefElement elem) |
void |
setList(java.util.Vector vec)Sets this validator's list of comparison values. |
java.lang.String |
toString()Internal: For debugging purposes only. |
boolean |
validateValue(java.lang.Object value)Validate that an object is present in a list of values. |
| Methods inherited from class oracle.jbo.server.rules.JboBaseValidator |
|---|
extractValueToValidate, getBindingStyle, initialize, raiseException, resolve, setBindingStyle, setNewValue, setValidatingAttribute, setValidatingAttribute, vetoableChange |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface oracle.jbo.server.rules.JbiValidator |
|---|
getDescription, setDescription |
| Methods inherited from interface oracle.jbo.server.util.VetoableChangeListener |
|---|
vetoableChange |
| Constructor Detail |
|---|
public JboListValidator()
Invoke setList() to provide a list of comparison values.
public JboListValidator(boolean inverse,
java.util.Vector vec)
inverse - if true the logic of this validator's test is inverted.vec - a list of comparison values.| Method Detail |
|---|
public boolean validateValue(java.lang.Object value)
The list of test values is set by setList.
This method is called by JboBaseValidator#vetoableChange().
validateValue in interface JbiValidatorvalidateValue in class JboBaseValidatorvalue - the object to be validated.true if value is in this validator's list of values.public void setList(java.util.Vector vec)
vec - a list of values.public java.util.Vector getList()
public java.lang.String toString()
toString in class java.lang.Objectpublic static java.util.Vector convertToVector(java.lang.String listVal)
listVal - a string containing values separated by ":" characters.public void loadXMLContents(DefElement elem)
loadXMLContents in class JboBaseValidator
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||