org.apache.shale.dialog.scxml.impl
Class DefaultDialogStateMapper

java.lang.Object
  extended by org.apache.shale.dialog.scxml.impl.DefaultDialogStateMapper
All Implemented Interfaces:
DialogStateMapper

public class DefaultDialogStateMapper
extends java.lang.Object
implements DialogStateMapper

Default DialogStateMapper implementation. The dialog state identifier itself is used as the JavaServer Faces view identifier.

Since:
1.0.4 $Id: DefaultDialogStateMapper.java 469656 2006-10-31 21:18:18Z rahul $

Constructor Summary
DefaultDialogStateMapper()
           
 
Method Summary
 java.lang.String mapStateId(java.lang.String dialogName, java.lang.String stateId, javax.faces.context.FacesContext context)
          The default implementation is an identity transform which returns the dialog state ID as the next JavaServer Faces view identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDialogStateMapper

public DefaultDialogStateMapper()
Method Detail

mapStateId

public java.lang.String mapStateId(java.lang.String dialogName,
                                   java.lang.String stateId,
                                   javax.faces.context.FacesContext context)

The default implementation is an identity transform which returns the dialog state ID as the next JavaServer Faces view identifier.

Specified by:
mapStateId in interface DialogStateMapper
Parameters:
dialogName - The logical name of the dialog this state belongs to
stateId - The state identifier for the current dialog state
context - The current FacesContext
Returns:
The JavaServer Faces view identifier that should be rendered


Copyright © 2004-2009 Apache Software Foundation. All Rights Reserved.