pt.digitalis.iss
Class ProcessResults

java.lang.Object
  extended by pt.digitalis.iss.ProcessResults

public class ProcessResults
extends Object

This class encapsulates the results of the process execution. It includes an error flag as well as a collection of results.
There are methods supplied to change and inspection of the error flag and the results collection.

Author:
Rodrigo Gonçalves rgoncalves@digitalis.pt

Constructor Summary
ProcessResults()
           
 
Method Summary
 Object getResult(String id)
          Fetches a result with a given id.
 Map<String,Object> getResults()
          Results map inspector.
 boolean isOnError()
          Error flag inspector.
 void setOnError(boolean onError)
          Error flag modifier.
 void setResult(String id, Object value)
          Sets an individual result.
 void setResults(Map<String,Object> newResults)
          Results map modifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessResults

public ProcessResults()
Method Detail

isOnError

public boolean isOnError()
Error flag inspector.

Returns:
the onError state

setOnError

public void setOnError(boolean onError)
Error flag modifier.

Parameters:
onError - the error flag value to set

getResults

public Map<String,Object> getResults()
Results map inspector.

Returns:
the results map

setResults

public void setResults(Map<String,Object> newResults)
Results map modifier.

Parameters:
newResults - the theResults to set

getResult

public Object getResult(String id)
Fetches a result with a given id.

Parameters:
id - the id of the result to fetch
Returns:
the value of the result with the given id, null if the supplied id doesn't exist

setResult

public void setResult(String id,
                      Object value)
Sets an individual result.

Parameters:
id - the result id
value - the result value


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