|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.9.0) E52932-01 |
||||||||
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.jbo.rules.ValidatorConstants |
---|
ValidatorConstants.MessageFlavor |
Field Summary | |
---|---|
protected java.lang.Object |
mSource Deprecated. |
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 | |
---|---|
void |
applyDiffContents(DifferDetails dif, DiffResolver resolver) |
static java.util.Vector |
convertToVector(java.lang.String listVal) Converts a string representation of values to a vector. |
DifferDetails |
diffContents(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails) |
protected boolean |
doValidateValue(java.lang.Object value, java.lang.Object source) |
java.lang.String |
getDefXMLElementTag() |
java.util.Vector |
getList() Deprecated. Replaced by getList(Object) . |
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) Deprecated. Replaced by validateValueWithContext(JboValidatorContext, Object) . |
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 |
---|
@Deprecated
protected java.lang.Object mSource
validateValueWithContext(JboValidatorContext, Object)
.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
protected void initialize(JboValidatorContext evObj)
initialize
in class JboAbstractValidator
public boolean validateValueWithContext(JboValidatorContext evObj, java.lang.Object value)
JboAbstractValidator
validateValueWithContext
in class JboAbstractValidator
@Deprecated
public boolean validateValue(java.lang.Object value)
validateValueWithContext(JboValidatorContext, Object)
.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.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)
@Deprecated
public java.util.Vector getList()
getList(Object)
.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(java.util.HashMap props)
initValidatorProperties
in interface JboValidatorHints
initValidatorProperties
in class AbstractValidator
public void loadXMLContents(DefElement elem)
loadXMLContents
in class JboAbstractValidator
public java.lang.String getDefXMLElementTag()
getDefXMLElementTag
in interface PersistentDefinition
getDefXMLElementTag
in class AbstractValidator
public void writeChildren(DefWriter jos)
PersistentDefinition
writeChildren
in interface PersistentDefinition
writeChildren
in class AbstractValidator
jos
- the Output storage for persistencepublic DifferDetails diffContents(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
diffContents
in interface DiffMergeable
diffContents
in class JboAbstractValidator
public void applyDiffContents(DifferDetails dif, DiffResolver resolver)
applyDiffContents
in interface DiffMergeable
applyDiffContents
in class AbstractValidator
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.9.0) E52932-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |