org.openemcee.microflow.impl
Class MicroflowDataImpl

java.lang.Object
  extended byorg.openemcee.microflow.impl.MicroflowDataImpl
All Implemented Interfaces:
MicroflowData

public class MicroflowDataImpl
extends java.lang.Object
implements MicroflowData

Author:
Scott Schenkein

Constructor Summary
MicroflowDataImpl(MicroflowDataDescriptorImpl desc)
          Creates a new instance of MicroflowDataImpl
 
Method Summary
 java.util.Set getAccessedData()
           
 java.lang.Object getAttribute(java.lang.String name)
          Retrieve data from the microflow by name.
 void resetAccessedData()
           
 java.lang.Object setAttribute(java.lang.String name, java.lang.Object obj)
          Set this named attribute in the microflow.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MicroflowDataImpl

public MicroflowDataImpl(MicroflowDataDescriptorImpl desc)
Creates a new instance of MicroflowDataImpl

Method Detail

getAccessedData

public java.util.Set getAccessedData()

resetAccessedData

public void resetAccessedData()

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Description copied from interface: MicroflowData
Retrieve data from the microflow by name.

Specified by:
getAttribute in interface MicroflowData
Parameters:
name - The name of the attribute to retrieve.
Returns:
The data represented by the given name, or null of unset.

setAttribute

public java.lang.Object setAttribute(java.lang.String name,
                                     java.lang.Object obj)
Description copied from interface: MicroflowData
Set this named attribute in the microflow. The attribute must be allowed in the job-descriptor XML, or as an init attribute. It throws an unchecked exception if you try to put in an unknown attribute, or your attribute is of the wrong type.

Specified by:
setAttribute in interface MicroflowData
Parameters:
name - The name of the attribute to set/overwrite.
obj - The value of the attribute to set/overwrite.
Returns:
If a value were previously set, it is returned here prior to overwrite.


OpenEmcee Microflow Engine for Java: All software and content contained herein is subject to the Mozilla public license v1.1.
SourceForge.net Logo