|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--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.
Fields inherited from class oracle.jbo.server.rules.JboBaseValidator |
mLValue |
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 |
getDescription,
getInverse,
setDescription,
setInverse,
setNewValue,
setValidatingAttribute,
setValidatingAttribute,
vetoableChange |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
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()
.
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.
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |