Class ExternalTaskWrapper.ExternalTaskContext

    • Field Detail

      • params

        protected java.util.Map<java.lang.String,​java.lang.Object> params
        The parameter values flattened.
      • mactivity

        protected MActivity mactivity
        The acticity.
    • Constructor Detail

      • ExternalTaskContext

        public ExternalTaskContext()
        Create a new context.
      • ExternalTaskContext

        public ExternalTaskContext​(ProcessThread thread)
        Create a new context.
    • Method Detail

      • getParameterValue

        public java.lang.Object getParameterValue​(java.lang.String name)
        Get a parameter value.
        Specified by:
        getParameterValue in interface ITaskContext
        Parameters:
        name - The name.
        Returns:
        The object.
      • getPropertyValue

        public java.lang.Object getPropertyValue​(java.lang.String name)
        Get a property value.
        Specified by:
        getPropertyValue in interface ITaskContext
        Parameters:
        name - The name.
        Returns:
        The object.
      • hasParameterValue

        public boolean hasParameterValue​(java.lang.String name)
        Test if context has a parameter.
        Specified by:
        hasParameterValue in interface ITaskContext
        Parameters:
        name - The name.
        Returns:
        True, if has parameter.
      • setParameterValue

        public void setParameterValue​(java.lang.String name,
                                      java.lang.Object key,
                                      java.lang.Object value)
        Set a parameter value.
        Specified by:
        setParameterValue in interface ITaskContext
        Parameters:
        name - The name.
        key - The key.
        value - The value.
      • setParameterValue

        public void setParameterValue​(java.lang.String name,
                                      java.lang.Object value)
        Set a parameter value.
        Specified by:
        setParameterValue in interface ITaskContext
        Parameters:
        name - The name.
        value - The value.
      • setOrCreateParameterValue

        public void setOrCreateParameterValue​(java.lang.String name,
                                              java.lang.Object value)
        Set or create a parameter value directly in this thread.
        Specified by:
        setOrCreateParameterValue in interface ITaskContext
        Parameters:
        name - The parameter name.
        value - The parameter value.
      • setOrCreateParameterValue

        public void setOrCreateParameterValue​(java.lang.String name,
                                              java.lang.Object key,
                                              java.lang.Object value)
        Set or create a parameter value directly in this thread.
        Specified by:
        setOrCreateParameterValue in interface ITaskContext
        Parameters:
        name - The parameter name.
        key - An optional helper (index, key etc.)
        value - The parameter value.
      • getParameters

        public java.util.Map<java.lang.String,​java.lang.Object> getParameters()
        Get the params.
        Returns:
        The params.
      • setParameters

        public void setParameters​(java.util.Map<java.lang.String,​java.lang.Object> params)
        Set the params.
        Parameters:
        params - The params to set.
      • setActivity

        public void setActivity​(MActivity mactivity)
        Set the mactivity.
        Parameters:
        mactivity - The mactivity to set.