pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.bundle
Class BundleResult

java.lang.Object
  extended by org.torweg.pulse.bundle.BundleResult
All Implemented Interfaces:
JDOMable, Result

public class BundleResult
extends java.lang.Object
implements Result

the BundleResult is used to collect all subresults of a Bundle during a single execution.

Version:
$Revision: 1383 $
Author:
Thomas Weber

Constructor Summary
BundleResult(java.lang.String name)
          builds a new BundleResult with the given name.
 
Method Summary
 void addResult(java.lang.String controllerName, java.lang.Object result)
          is called by BundleInvoker to add the Result of a Controller.
 org.jdom.Element deserializeToJDOM()
          this will deserialize the state of the JDOMable as a JDOM Element.
 boolean hadAction()
           
 void setBundleName(java.lang.String name)
          sets the name of the Bundle the BundleResult is used for.
 void setHadAction(boolean act)
          indicating whether the Bundle which produced the BundleResult was explicitly called by a Command .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleResult

public BundleResult(java.lang.String name)
builds a new BundleResult with the given name.

Parameters:
name - the name of the Bundle
Method Detail

deserializeToJDOM

public final org.jdom.Element deserializeToJDOM()
Description copied from interface: JDOMable
this will deserialize the state of the JDOMable as a JDOM Element.

Specified by:
deserializeToJDOM in interface JDOMable
Returns:
the serialized Result of the Bundle
See Also:
JDOMable.deserializeToJDOM()

addResult

public final void addResult(java.lang.String controllerName,
                            java.lang.Object result)
is called by BundleInvoker to add the Result of a Controller.

Parameters:
controllerName - the full qualified class name of the Controller
result - the Result of the Controller

setBundleName

public final void setBundleName(java.lang.String name)
sets the name of the Bundle the BundleResult is used for.

Parameters:
name - the name to set

hadAction

public final boolean hadAction()
Returns:
Returns true, if the Bundle which produced the BundleResult was explicitly called by a Command. Otherwise false.

setHadAction

public final void setHadAction(boolean act)
indicating whether the Bundle which produced the BundleResult was explicitly called by a Command .

Parameters:
act - The flag to set.