|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ValueElements are elements that both have a value and let the clients/users decide what to do with the value. The client/user of a ValueElement is typically the parent element.
The latter aspect is an important one. A ValueElement doesn't actually know what to do with the value, it can only create the value. It is the responsibility of the client/user to use the value for something.
ValueElements are usually used for producing parameters of various operations, like the constructor and action operation of an element.
Field Summary |
Fields inherited from interface org.jicengine.element.Element |
VARIABLE_NAME_CDATA, VARIABLE_NAME_ELEMENT_INSTANCE, VARIABLE_NAME_PARENT_INSTANCE |
Method Summary | |
java.lang.Object |
getValue(Context globalContext,
java.lang.Object parentInstance)
Creates and returns the value of this element. |
Methods inherited from interface org.jicengine.element.Element |
getName |
Method Detail |
public java.lang.Object getValue(Context globalContext, java.lang.Object parentInstance) throws ElementException
Creates and returns the value of this element.
The client/user of this element will call this method. currently, the method is called only once. No caching of the result is needed. However, the object should be able to be executed multiple times.
in general, the creation of the value consists of the following steps:
globalContext
- a Context where the instances marked with the 'id'-attribute
are put.parentInstance
- the instance of the parent element. NOTE: null-value means
that the value of the parent is not available (not yet
or never), not that the instance of the parent is null!
ElementException
- if any part of the execution of the action fails.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |