|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.engine.AnnotatedObject
org.springframework.webflow.engine.FlowVariable
public abstract class FlowVariable
A value object that defines a specification for a flow variable. Encapsulates information about the variable and the behavior necessary to create a new variable instance in a flow execution scope.
Field Summary |
---|
Fields inherited from class org.springframework.webflow.engine.AnnotatedObject |
---|
CAPTION_PROPERTY, DESCRIPTION_PROPERTY |
Constructor Summary | |
---|---|
FlowVariable(java.lang.String name,
ScopeType scope)
Creates a new flow variable. |
Method Summary | |
---|---|
void |
create(RequestContext context)
Creates a new instance of this flow variable in the configured scope. |
protected abstract java.lang.Object |
createVariableValue(RequestContext context)
Hook method that needs to be implemented by subclasses to calculate the value of this flow variable based on the information available in the request context. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getName()
Returns the name of this variable. |
ScopeType |
getScope()
Returns the scope of this variable. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class org.springframework.webflow.engine.AnnotatedObject |
---|
getAttributeMap, getAttributes, getCaption, getDescription, setCaption, setDescription |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FlowVariable(java.lang.String name, ScopeType scope)
name
- the variable namescope
- the variable scope typeMethod Detail |
---|
public java.lang.String getName()
public ScopeType getScope()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public final void create(RequestContext context)
context
- the flow execution request contextprotected abstract java.lang.Object createVariableValue(RequestContext context)
context
- the flow execution request context
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |