com.ibm.xsp.application
Class NavigationRule

java.lang.Object
  extended by com.ibm.xsp.complex.ValueBindingObjectImpl
      extended by com.ibm.xsp.application.NavigationRule
All Implemented Interfaces:
ComponentBindingObject, ValueBindingObject, javax.faces.component.StateHolder

public class NavigationRule
extends ValueBindingObjectImpl

An individual decision rule that indicates which page should be opened next as implemented in JSF


Constructor Summary
NavigationRule()
           
 
Method Summary
 java.lang.String getOutcome()
          Returns the logical outcome returned by a previous invoked application action (which may be null)
 java.lang.String getViewId()
          Return the view identifier for the current request
 boolean isRedirect()
          Returns if the outcome is to be redirected
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setOutcome(java.lang.String outcome)
          Sets the outcome of where the rule should go
 void setRedirect(boolean redirect)
          Sets the redirect
 void setViewId(java.lang.String viewId)
          Sets the view identifier for the current request
 java.lang.String toString()
           
 
Methods inherited from class com.ibm.xsp.complex.ValueBindingObjectImpl
getComponent, getFacesContext, getValueBinding, isTransient, setComponent, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NavigationRule

public NavigationRule()
Method Detail

getOutcome

public java.lang.String getOutcome()
Returns the logical outcome returned by a previous invoked application action (which may be null)

Returns:
outcome

setOutcome

public void setOutcome(java.lang.String outcome)
Sets the outcome of where the rule should go

Parameters:
outcome -

getViewId

public java.lang.String getViewId()
Return the view identifier for the current request

Returns:
viewId.

setViewId

public void setViewId(java.lang.String viewId)
Sets the view identifier for the current request

Parameters:
viewId -

isRedirect

public boolean isRedirect()
Returns if the outcome is to be redirected

Returns:
true if redirect is set, false if not

setRedirect

public void setRedirect(boolean redirect)
Sets the redirect

Parameters:
redirect -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class ValueBindingObjectImpl

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class ValueBindingObjectImpl