Class DefaultPageFlow

    • Constructor Detail

      • DefaultPageFlow

        public DefaultPageFlow​(String id,
                               org.springframework.statemachine.StateMachine<PageState,​String> stateMachine)
    • Method Detail

      • getId

        public String getId()
        Description copied from interface: PageFlow
        Return the identifier of the PageFlow instance.
        Specified by:
        getId in interface PageFlow
        Returns:
        the identifier of the PageFlow instance
      • isStarted

        public boolean isStarted()
        Description copied from interface: PageFlow
        Return true if this PageFlow instance has started.
        Specified by:
        isStarted in interface PageFlow
        Returns:
        true if this PageFlow instance has started
      • isStopped

        public boolean isStopped()
        Description copied from interface: PageFlow
        Return true if this PageFlow instance has stopped.
        Specified by:
        isStopped in interface PageFlow
        Returns:
        true if this PageFlow instance has stopped
      • isComplete

        public boolean isComplete()
                           throws PageFlowException
        Description copied from interface: PageFlow
        Return true if this PageFlow instance is completed.
        Specified by:
        isComplete in interface PageFlow
        Returns:
        true if this PageFlow instance is completed
        Throws:
        PageFlowException - if any exception occurs
      • sendEvent

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

        public Object getAttribute​(String name)
                            throws PageFlowException
        Description copied from interface: PageFlow
        Find and return the attribute model object of this PageFlow by the name. Return null if not found.
        Specified by:
        getAttribute in interface PageFlow
        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
      • equals

        public boolean equals​(Object o)
        Description copied from interface: PageFlow
        Compares the specified object with this PageFlow for equality.
        Specified by:
        equals in interface PageFlow
        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

        public int hashCode()
        Description copied from interface: PageFlow
        Returns the hash code value for this PageFlow.
        Specified by:
        hashCode in interface PageFlow
        Overrides:
        hashCode in class Object
        Returns:
        the hash code value for this PageFlow