|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jbo.rules.AbstractValidator
oracle.jbo.rules.JboAbstractValidator
oracle.jbo.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 | |
---|---|
protected java.lang.Object |
mSource
|
Fields inherited from class oracle.jbo.rules.JboAbstractValidator |
---|
CLASS_INSTANCE, mValidatingAttr |
Fields inherited from class oracle.jbo.rules.AbstractValidator |
---|
m_children, m_props, mbInverse, mDescription, mErrorMessageClass, mMsgExpr, mMsgId, mMsgIds, mResourceBundleId, mTriggeringAttributeNames, mTriggeringAttributes, mValidatingAttrName |
Constructor Summary | |
---|---|
JboListValidator()
Creates an uninitialized list validator. |
|
JboListValidator(boolean bInverse)
|
|
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. |
void |
endInit()
|
java.lang.String |
getDefXMLElementTag()
|
java.util.Vector |
getList()
Gets this validator's list of comparison values. |
java.lang.String |
getValidatorSubType()
|
protected void |
initialize(JboValidatorContext evObj)
|
void |
initValidatorProperties(Map props)
|
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. |
boolean |
validateValueWithContext(JboValidatorContext evObj,
java.lang.Object value)
Override to set mSource per validation call. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.jbo.rules.JboValidatorHints |
---|
isTransactionLevel |
Methods inherited from interface oracle.jbo.rules.JboValidatorInterface |
---|
getDescription, setDescription |
Field Detail |
---|
protected java.lang.Object mSource
Constructor Detail |
---|
public JboListValidator()
Invoke setList()
to provide a list of comparison values.
public JboListValidator(boolean bInverse)
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 java.lang.String getValidatorSubType()
getValidatorSubType
in class AbstractValidator
public void endInit()
endInit
in class JboAbstractValidator
protected void initialize(JboValidatorContext evObj)
initialize
in class JboAbstractValidator
public boolean validateValueWithContext(JboValidatorContext evObj, java.lang.Object value)
validateValueWithContext
in class JboAbstractValidator
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 JboAbstractValidator
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.public void initValidatorProperties(Map props)
initValidatorProperties
in interface JboValidatorHints
initValidatorProperties
in class AbstractValidator
public java.lang.String getDefXMLElementTag()
getDefXMLElementTag
in class JboAbstractValidator
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |