com.zphinx.spine.core.viewprocessors
Class DefaultViewProcessor

java.lang.Object
  extended by com.zphinx.spine.core.viewprocessors.ViewProcessor
      extended by 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

Field Summary
 
Fields inherited from class com.zphinx.spine.core.viewprocessors.ViewProcessor
DATABASE_DATASOURCE, GENERAL_EXCEPTION, messages, newClass
 
Constructor Summary
DefaultViewProcessor()
           
 
Method Summary
 int processNavigation(ResultObject result)
          Processes the navigation rules for this processor.
 
Methods inherited from class com.zphinx.spine.core.viewprocessors.ViewProcessor
createAssembler, delegateFactory, getDelegate, getProcessorAliasName, processData, processData, resetDelegateName, resetPackageName, setDelegateFullName, setProcessorAliasName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultViewProcessor

public DefaultViewProcessor()
Method Detail

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 ]