com.zphinx.spine.core.viewprocessors
Class DefaultViewProcessor
java.lang.Object
com.zphinx.spine.core.viewprocessors.ViewProcessor
com.zphinx.spine.core.viewprocessors.DefaultViewProcessor
public class DefaultViewProcessor
- extends ViewProcessor
This class is the default implementation of a view processor. It should be extended to provide further features where necessary.
- Version:
- $1.0
Copyright ©Zphinx Software Solutions
- Author:
- David Ladapo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultViewProcessor
public DefaultViewProcessor()
processNavigation
public int processNavigation(ResultObject result)
- Processes the navigation rules for this processor.
It will return 0 if the resultObject has an errorFlag set to true or the object obtained in CommandComponent.getObj() is null, otherwise it will return 1 to indicate that we can navigate to a success page.
- Specified by:
processNavigation in class ViewProcessor
- Parameters:
result - The resultObject instance to be parsed for information
- Returns:
- An int to indicate success
[ 1 ] or failure [ 0 ]