|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.iscreen.impl.ContextBean
public class ContextBean
This class represents the JavaBean that's used to evaluate OGNL expressions. Failure messages and documentation may reference this JavaBean to reference its properties. Note that certain properties are certain lifecycles (meaning, they are valid at certain times). For example, the failure property is only available during runtime, after a validation has been performed (and a failure has been discovered). Therefore, it's not "valid" to reference it within documentation. Note the lifecycles of each property on the getters/setters.
Field Summary | |
---|---|
protected java.lang.Object |
bean
|
protected java.lang.Object |
failure
|
protected java.util.Collection |
fields
|
protected java.lang.Integer |
index
|
protected java.lang.String |
label
|
protected Validator |
validator
|
Constructor Summary | |
---|---|
ContextBean()
Default constructor. |
Method Summary | |
---|---|
java.lang.Object |
getBean()
The JavaBean being validated can be retrieved by failure messages, since the bean is set prior to validation (prior to any validators being called). |
java.lang.Object |
getFailure()
The failure object, which represents an object associated with a particular failure (and failure message), is available to failure messages, as it's set prior to them being evaluated. |
java.util.Collection |
getFields()
Returns the fields, which are OGNL 'getter' expressions. |
java.lang.Integer |
getIndex()
Gets the index of this OGNL root. |
java.lang.String |
getLabel()
The label is available during runtime, prior to any validators being called (prior to validation). |
Validator |
getValidator()
The Validator is available during runtime, prior to any validators being called (prior to validation). |
void |
setBean(java.lang.Object theBean)
The JavaBean being validated is set during runtime, prior to any validators being called (prior to validation). |
void |
setFailure(java.lang.Object theFailure)
The failure object, which represents an object associated with a particular failure (and failure message), is set during validation, when a validator reports the failure. |
void |
setFields(java.util.Collection theFields)
The fields, which are a collection of OGNL 'getter' expressions meant to map from the JavaBean (or object) being validated to the validation bean used by the Validator, are set prior to validation. |
void |
setIndex(int theIndex)
Sets the index of this OGNL root. |
void |
setLabel(java.lang.String theLabel)
The label is set during runtime, prior to any validators being called (prior to validation). |
void |
setValidator(Validator theValidator)
The Validator is set during runtime, prior to any validators being called (prior to validation). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object bean
protected java.lang.String label
protected java.lang.Object failure
protected Validator validator
protected java.util.Collection fields
protected java.lang.Integer index
Constructor Detail |
---|
public ContextBean()
Method Detail |
---|
public void setBean(java.lang.Object theBean)
theBean
- The JavaBean being validated.public java.lang.Object getBean()
public void setLabel(java.lang.String theLabel)
theLabel
- The label associated with a particular validation.public java.lang.String getLabel()
public void setValidator(Validator theValidator)
theValidator
- The validator being used.public Validator getValidator()
public void setFailure(java.lang.Object theFailure)
theFailure
- The failure object set by a Validator during
validation (associated with a failure message).public java.lang.Object getFailure()
public void setFields(java.util.Collection theFields)
theFields
- The Collection of fields (or OGNL 'getter' expressions).public java.util.Collection getFields()
public void setIndex(int theIndex)
theIndex
- The index of the JavaBean property being validated.public java.lang.Integer getIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |