|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.jbo.common.NamedObjectImpl
oracle.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 |
|---|
mValidatingAttr |
| Fields inherited from class oracle.jbo.rules.AbstractValidator |
|---|
mbInverse, mDescription, mErrorMessageClass, mMsgExpr, mMsgId, mMsgIds, mResourceBundleId, mTriggeringAttributeNames, mTriggeringAttributes, mValidatingAttrName |
| Fields inherited from class oracle.jbo.common.NamedObjectImpl |
|---|
mFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX |
| Fields inherited from interface oracle.jbo.mom.xml.DefPersistable |
|---|
XML_STATEMENT |
| 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. |
protected boolean |
doValidateValue(java.lang.Object value, java.lang.Object source) |
java.lang.String |
getDefXMLElementTag() |
java.util.Vector |
getList() |
java.util.Vector |
getList(java.lang.Object source) |
java.lang.String |
getValidatorSubType() |
protected void |
initialize(JboValidatorContext evObj) |
void |
initValidatorProperties(java.util.HashMap props) |
void |
loadXMLContents(DefElement elem) |
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)Called internally by the framework with validation OnCondition is true or there is no validation OnCondition. |
void |
writeChildren(DefWriter jos)Writes the Object's children to the Persistent storage |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface oracle.jbo.rules.JboValidatorHints |
|---|
getTriggeringAttributeNames, isTransactionLevel |
| Methods inherited from interface oracle.jbo.rules.JboValidatorInterface |
|---|
getDescription, setDescription |
| Methods inherited from interface oracle.jbo.mom.xml.DefPersistable |
|---|
isDirty, isNew, setDirty, setNew |
| 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 AbstractValidatorprotected void initialize(JboValidatorContext evObj)
initialize in class JboAbstractValidator
public boolean validateValueWithContext(JboValidatorContext evObj,
java.lang.Object value)
JboAbstractValidatorvalidateValueWithContext in class JboAbstractValidatorpublic 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.
protected boolean doValidateValue(java.lang.Object value,
java.lang.Object source)
public void setList(java.util.Vector vec)
vec - a list of values.public java.util.Vector getList(java.lang.Object source)
public java.util.Vector getList()
public java.lang.String toString()
toString in class java.lang.Objectpublic static java.util.Vector convertToVector(java.lang.String listVal)
listVal - a string containing values separated by ":" characters.public void initValidatorProperties(java.util.HashMap props)
initValidatorProperties in interface JboValidatorHintsinitValidatorProperties in class AbstractValidatorpublic void loadXMLContents(DefElement elem)
loadXMLContents in class JboAbstractValidatorpublic java.lang.String getDefXMLElementTag()
getDefXMLElementTag in interface PersistentDefinitiongetDefXMLElementTag in class JboAbstractValidatorpublic void writeChildren(DefWriter jos)
PersistentDefinitionwriteChildren in interface PersistentDefinitionwriteChildren in class AbstractValidatorjos - the Output storage for persistence
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||