|
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 oracle.jbo.server.rules.JboBaseValidator oracle.jbo.server.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.server.rules.JboBaseValidator |
mLValue, mValidatingAttr |
Fields inherited from class oracle.jbo.rules.AbstractValidator |
mDescription, mErrorMessageClass, mMsgId, mValidatingAttrName |
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.server.rules.JboBaseValidator |
initialize, raiseException, setNewValue, setValidatingAttribute, setValidatingAttribute, vetoableChange |
Methods inherited from class oracle.jbo.rules.AbstractValidator |
convertToJava, getDescription, getErrorMessageClass, getErrorMsgId, getInverse, getValidatingAttributeName, setDescription, setErrorMessageClass, setErrorMsgId, setInverse, setValidatingAttributeName |
Methods inherited from class java.lang.Object |
clone, 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 JbiValidator
validateValue
in class JboBaseValidator
value
- 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 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.