com.sdm.quasar.client.core.dialog
Class DialogInstanceId

java.lang.Object
  extended bycom.sdm.quasar.client.core.common.ID
      extended bycom.sdm.quasar.client.core.dialog.DialogInstanceId

public class DialogInstanceId
extends ID

Identifies an instance of a dialog managed by the dialog environment.

Every dialog instance has both a dialog id and an instance id. The dialog id (getDialogId()) identifies the type and implementation of a dialog. The instance id (getInstanceId()) identifies the instance of the dialog.

Within a session, the DialogInstanceId identifies an instance of a dialog.

Version:
1.0
Author:
Carsten Lucke, sd&m AG, Bernd Olleck, sd&m AG

Constructor Summary
DialogInstanceId(java.lang.String dialogId, java.lang.String instanceId)
          Creates a dialog instance id.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDialogId()
          Returns the dialog id
 java.lang.String getInstanceId()
          Returns the unique instance id of the dialog instance id.
 int hashCode()
           
 java.lang.String toString()
          Returns a string containing the dialog id and the instance number.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DialogInstanceId

public DialogInstanceId(java.lang.String dialogId,
                        java.lang.String instanceId)
Creates a dialog instance id.

Note that the master for assigning these ids to dialogs is the dialog manager.

Parameters:
dialogId - the id of the dialog
instanceId - the unique id of the dialog instance within the session
Method Detail

getInstanceId

public java.lang.String getInstanceId()
Returns the unique instance id of the dialog instance id.

Returns:
the unique instance id

getDialogId

public java.lang.String getDialogId()
Returns the dialog id

Returns:
the dialog id

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object obj)

toString

public java.lang.String toString()
Returns a string containing the dialog id and the instance number.

Returns:
a string containing the dialog id and the instance number.