public abstract class BaseActionResult<T> extends java.lang.Object implements ActionResult<T>
Action result.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
resultName |
protected java.lang.Class<T> |
resultValueType |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseActionResult()
Creates new action result without a string identification.
|
protected |
BaseActionResult(java.lang.String resultName)
Creates new action result that has a string identification.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getResultName()
Returns the name of this action result.
|
java.lang.Class<T> |
getResultValueType()
Returns type of result value, passed to the
render method
and defined by generics. |
void |
init()
Initializes the result.
|
protected java.lang.Class<T> |
resolveResultValueType()
Resolves
result value type by finding the
first superclass that has this value defined in generics. |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrenderprotected final java.lang.String resultName
protected final java.lang.Class<T> resultValueType
protected BaseActionResult(java.lang.String resultName)
protected BaseActionResult()
protected java.lang.Class<T> resolveResultValueType()
result value type by finding the
first superclass that has this value defined in generics.public java.lang.String getResultName()
null for results
that does not need to be found using string name identification;
i.e. when action does not return a string result.getResultName in interface ActionResult<T>public java.lang.Class<T> getResultValueType()
render method
and defined by generics. Returns null when this action result does not need
to be registered for result value type (eg when used in @Action annotation).getResultValueType in interface ActionResult<T>public void init()
init in interface ActionResult<T>public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2003-2013 Jodd Team