Package adams.flow.core
Class PropertiesUpdaterHelper
- java.lang.Object
-
- adams.flow.core.PropertiesUpdaterHelper
-
public class PropertiesUpdaterHelper extends Object
Helper class for updating properties.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description PropertiesUpdaterHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertyPath.PropertyContainer[]
configure(Object obj, BaseString[] props, MessageCollection errors)
Configures the property containers for an object.static void
update(Actor context, Object obj, BaseString[] props, VariableName[] vars, PropertyPath.PropertyContainer[] conts, MessageCollection errors)
Updates the properties of the object using the current values of the variables.
-
-
-
Method Detail
-
configure
public static PropertyPath.PropertyContainer[] configure(Object obj, BaseString[] props, MessageCollection errors)
Configures the property containers for an object.- Parameters:
obj
- the object to configure the containers forprops
- the properties to configureerrors
- for storing errors- Returns:
- the configured containers, null if failed
-
update
public static void update(Actor context, Object obj, BaseString[] props, VariableName[] vars, PropertyPath.PropertyContainer[] conts, MessageCollection errors)
Updates the properties of the object using the current values of the variables.- Parameters:
context
- the flow context for getting access to the variablesobj
- the Java object to updateprops
- the properties to updatevars
- the variables to useconts
- the property containers to useerrors
- for collecting errors- See Also:
configure(Object, BaseString[], MessageCollection)
-
-