Class FlowContextUtils


  • public class FlowContextUtils
    extends Object
    Helper class for flow contexts.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • FlowContextUtils

        public FlowContextUtils()
    • Method Detail

      • update

        public static int update​(Object obj,
                                 Actor context)
        Updates the flow context recursively in the object and its children.
        Parameters:
        obj - the object to update
        context - the context to set
        Returns:
        the number of contexts updated
      • isHandler

        public static boolean isHandler​(Object obj)
        Returns whether the object or one of the object's children is a FlowContextHandler.
        Parameters:
        obj - the object to check
        Returns:
        true if a handler