|
Oracle Application Development Framework Model and Business Components Java API Reference
10g Release 3 (10.1.3) B16005-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.jbo.rules.AbstractValidator
oracle.jbo.rules.JboAbstractValidator
oracle.jbo.rules.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.rules.JboAbstractValidator |
mValidatingAttr, mValidatingAttrName |
| Fields inherited from class oracle.jbo.rules.AbstractValidator |
mbInverse, mDescription, mErrorMessageClass, mMsgId |
| 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 |
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.rules.JboAbstractValidator |
getValidatingAttributeName, getValueToValidate, initialize, setNewValue, setValidatingAttribute, setValidatingAttribute, setValidatingAttributeName, validate |
| Methods inherited from class oracle.jbo.rules.AbstractValidator |
convertToJava, getDescription, getErrorMessageClass, getErrorMsgId, getInverse, setDescription, setErrorMessageClass, setErrorMsgId, setInverse |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface oracle.jbo.rules.JboValidatorInterface |
getDescription, setDescription, validate |
| 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 AbstractValidator#vetoableChange().
validateValue in class JboAbstractValidatorvalue - 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()
public static java.util.Vector convertToVector(java.lang.String listVal)
listVal - a string containing values separated by ":" characters.
|
Oracle Application Development Framework Model and Business Components Java API Reference
10g Release 3 (10.1.3) B16005-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||