Class ObjectRetriever

    • Constructor Detail

      • ObjectRetriever

        public ObjectRetriever()
    • Method Detail

      • getFlowContext

        public Actor getFlowContext()
        Returns the flow context, if any.
        Specified by:
        getFlowContext in interface FlowContextHandler
        Returns:
        the actor, null if none available
      • retrievalTypeTipText

        public String retrievalTypeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setObjectActor

        public void setObjectActor​(CallableActorReference value)
        Sets the callable actor to retrieve the object from.
        Parameters:
        value - the actor reference
      • getObjectActor

        public CallableActorReference getObjectActor()
        Returns the callable actor to retrieve the object from.
        Returns:
        the actor reference
      • objectActorTipText

        public String objectActorTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setObjectStorage

        public void setObjectStorage​(StorageName value)
        Sets the storage item name to get the object from.
        Parameters:
        value - the storage name
      • getObjectStorage

        public StorageName getObjectStorage()
        Returns the storage item name to get the object from.
        Returns:
        the storage name
      • objectStorageTipText

        public String objectStorageTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setObjectType

        public void setObjectType​(BaseClassname value)
        Sets the interface or superclass to restrict the objects to.
        Parameters:
        value - the class
      • getObjectType

        public BaseClassname getObjectType()
        Returns the interface or superclass to restrict the objects to.
        Returns:
        the class
      • objectTypeTipText

        public String objectTypeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • retrieveFromCallableActor

        protected Object retrieveFromCallableActor​(MessageCollection errors)
        Retrieves the object from the callable actor.
        Parameters:
        errors - for collecting errors
        Returns:
        the object, null if failed to retrieve
      • retrieveFromStorage

        protected Object retrieveFromStorage​(MessageCollection errors)
        Retrieves the object from the storage item.
        Parameters:
        errors - for collecting errors
        Returns:
        the object, null if failed to load
      • retrieveAutomatically

        protected Object retrieveAutomatically​(MessageCollection errors)
        Retrieves the object automatically from file/callable actor/storage.
        Parameters:
        errors - for collecting errors
        Returns:
        the object, null if failed
      • getObject

        public Object getObject​(MessageCollection errors)
        Retrieves the object.
        Parameters:
        errors - for collecting errors
        Returns:
        the object, null if failed to load