|
Oracle9i Business Components for Java API Reference Oracle9i Jdeveloper (9.0.4) B10391-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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.
Field Summary |
Fields inherited from class oracle.jbo.server.rules.JboBaseValidator |
mLValue, MSG_BUNDLE_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 |
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, getErrorMsgId, getInverse, initialize, raiseException, setDescription, setErrorMsgId, setInverse, setNewValue, setValidatingAttribute, setValidatingAttribute, setValidatingAttributeName, vetoableChange |
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()
toString
in class java.lang.Object
public static java.util.Vector convertToVector(java.lang.String listVal)
listVal
- a string containing values separated by ":"
characters.
|
Oracle9i Business Components for Java API Reference Oracle9i Jdeveloper (9.0.4) B10391-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.