Interface PageFlow

    • Method Detail

      • getId

        String getId()
        Return the identifier of the PageFlow instance.
        Returns:
        the identifier of the PageFlow instance
      • isStarted

        boolean isStarted()
        Return true if this PageFlow instance has started.
        Returns:
        true if this PageFlow instance has started
      • isStopped

        boolean isStopped()
        Return true if this PageFlow instance has stopped.
        Returns:
        true if this PageFlow instance has stopped
      • isComplete

        boolean isComplete()
                    throws PageFlowException
        Return true if this PageFlow instance is completed.
        Returns:
        true if this PageFlow instance is completed
        Throws:
        PageFlowException - if any exception occurs
      • sendEvent

        void sendEvent​(String event)
                throws PageFlowException
        Send an event to the PageFlow, which might cause a Page Transition as a result.
        Parameters:
        event - event
        Throws:
        PageFlowException - if any exception occurs
      • getAttribute

        Object getAttribute​(String name)
                     throws PageFlowException
        Find and return the attribute model object of this PageFlow by the name. Return null if not found.
        Parameters:
        name - attribute name
        Returns:
        the attribute model object of this PageFlow by the name, null if not found
        Throws:
        PageFlowException - if any exception occurs
      • setAttribute

        void setAttribute​(String name,
                          Object model)
                   throws PageFlowException
        Set the attribute by the name on this PageFlow.
        Parameters:
        name - attribute name
        model - attribute model object
        Throws:
        PageFlowException - if any exception occurs
      • getAttributeMap

        Map<String,​Object> getAttributeMap()
                                          throws PageFlowException
        Return an unmodifiable attributes map of this PageFlow.
        Returns:
        an unmodifiable attributes map of this PageFlow
        Throws:
        PageFlowException - if any exception occurs
      • equals

        boolean equals​(Object o)
        Compares the specified object with this PageFlow for equality.
        Overrides:
        equals in class Object
        Parameters:
        o - the object to be compared for equality with this PageFlow
        Returns:
        true if the specified object is equal to this PageFlow
      • hashCode

        int hashCode()
        Returns the hash code value for this PageFlow.
        Overrides:
        hashCode in class Object
        Returns:
        the hash code value for this PageFlow