pt.digitalis.dif.controller.objects
Class DIFResponse

java.lang.Object
  extended by pt.digitalis.dif.controller.objects.DIFResponse
All Implemented Interfaces:
IDIFResponse

public class DIFResponse
extends Object
implements IDIFResponse

Implementation for IDIFResponse.

Author:
Rodrigo Gonçalves rgoncalves@digitalis.pt, Luis Pinto lpinto@digitalis.pt
Created on:
2007/03/16

Constructor Summary
DIFResponse()
           
 
Method Summary
 void addStageResult(String resultName, Object resultValue)
          Adds an entry to the stage results map.
 IDIFRequest getRequest()
           
 ResultMessage getResultMessage()
          Inspector for the 'resultMessage' attribute.
 IStageInstance getStageInstance()
           
 Object getStageResult(String resultName)
          Returns the value of the result with a given name, if it exists
 Map<String,Object> getStageResults()
          Returns the DIFResponse stage results.
 ViewObject getView()
          ViewObject inspector.
 void setRequest(IDIFRequest request)
           
 void setResultMessage(ResultMessage resultMessage)
          Modifier for the 'resultMessage' attribute.
 void setStageInstance(IStageInstance stageInstance)
           
 void setStageResults(Map<String,Object> map)
          Builds the DIFResponse stage results based on an external map.
 void setView(ViewObject newView)
          ViewObject modifier.
 String toString()
          Prints the Response in a human-readable form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DIFResponse

public DIFResponse()
Method Detail

addStageResult

public void addStageResult(String resultName,
                           Object resultValue)
Description copied from interface: IDIFResponse
Adds an entry to the stage results map.

Specified by:
addStageResult in interface IDIFResponse
Parameters:
resultName - the result name
resultValue - the result value
See Also:
IDIFResponse.addStageResult(String, Object)

getRequest

public IDIFRequest getRequest()
Specified by:
getRequest in interface IDIFResponse
Returns:
the request
See Also:
IDIFResponse.getRequest()

getResultMessage

public ResultMessage getResultMessage()
Description copied from interface: IDIFResponse
Inspector for the 'resultMessage' attribute.

Specified by:
getResultMessage in interface IDIFResponse
Returns:
the resultMessage value
See Also:
IDIFResponse.getResultMessage()

getStageInstance

public IStageInstance getStageInstance()
Specified by:
getStageInstance in interface IDIFResponse
Returns:
the stageInstance
See Also:
IDIFResponse.getStageInstance()

getStageResult

public Object getStageResult(String resultName)
Description copied from interface: IDIFResponse
Returns the value of the result with a given name, if it exists

Specified by:
getStageResult in interface IDIFResponse
Parameters:
resultName - the result name
Returns:
the value of the result with the supplied name, if it exists
See Also:
IDIFResponse.getStageResult(String)

getStageResults

public Map<String,Object> getStageResults()
Description copied from interface: IDIFResponse
Returns the DIFResponse stage results.

Specified by:
getStageResults in interface IDIFResponse
Returns:
The map with the stage results
See Also:
IDIFResponse.getStageResults()

getView

public ViewObject getView()
Description copied from interface: IDIFResponse
ViewObject inspector.

Specified by:
getView in interface IDIFResponse
Returns:
the theView
See Also:
IDIFResponse.getView()

setRequest

public void setRequest(IDIFRequest request)
Specified by:
setRequest in interface IDIFResponse
Parameters:
request - the request to set
See Also:
IDIFResponse.setRequest(pt.digitalis.dif.controller.interfaces.IDIFRequest)

setResultMessage

public void setResultMessage(ResultMessage resultMessage)
Description copied from interface: IDIFResponse
Modifier for the 'resultMessage' attribute.

Specified by:
setResultMessage in interface IDIFResponse
Parameters:
resultMessage - the new resultMessage value to set
See Also:
IDIFResponse.setResultMessage(pt.digitalis.dif.controller.objects.ResultMessage)

setStageInstance

public void setStageInstance(IStageInstance stageInstance)
Specified by:
setStageInstance in interface IDIFResponse
Parameters:
stageInstance - the stageInstance to set
See Also:
IDIFResponse.setStageInstance(pt.digitalis.dif.dem.interfaces.IStageInstance)

setStageResults

public void setStageResults(Map<String,Object> map)
Description copied from interface: IDIFResponse
Builds the DIFResponse stage results based on an external map.

Specified by:
setStageResults in interface IDIFResponse
Parameters:
map - The map with the original stage results
See Also:
IDIFResponse.setStageResults(Map)

setView

public void setView(ViewObject newView)
Description copied from interface: IDIFResponse
ViewObject modifier.

Specified by:
setView in interface IDIFResponse
Parameters:
newView - the theView to set
See Also:
IDIFResponse.setView(ViewObject)

toString

public String toString()
Prints the Response in a human-readable form. Overrides java.lang.Object#toString().

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.