Class PhaseRule

    • Constructor Detail

      • PhaseRule

        public PhaseRule()
        Constructor PhaseRule.
      • PhaseRule

        public PhaseRule​(String phaseName)
    • Method Detail

      • getAfter

        public String getAfter()
        Method getAfter.
        Returns:
        Returns String.
      • getBefore

        public String getBefore()
        Method getBefore.
        Returns:
        Returns String.
      • getPhaseName

        public String getPhaseName()
        Method getPhaseName.
        Returns:
        Returns String.
      • isPhaseFirst

        public boolean isPhaseFirst()
        Method isPhaseFirst.
        Returns:
        Returns boolean.
      • isPhaseLast

        public boolean isPhaseLast()
        Method isPhaseLast.
        Returns:
        Returns boolean.
      • setAfter

        public void setAfter​(String after)
        Set the "after" name for this rule.
        Parameters:
        after - the name of the "after" handler
      • setBefore

        public void setBefore​(String before)
        Set the "before" name for this rule.
        Parameters:
        before - the name of the "before" handler
      • setPhaseFirst

        public void setPhaseFirst​(boolean phaseFirst)
        Method setPhaseFirst.
        Parameters:
        phaseFirst - true if this rule defines the first Handler in a Phase
      • setPhaseLast

        public void setPhaseLast​(boolean phaseLast)
        Method setPhaseLast.
        Parameters:
        phaseLast - true if this rule defines the last Handler in a Phase
      • setPhaseName

        public void setPhaseName​(String phaseName)
        Method setPhaseName.
        Parameters:
        phaseName - the name of the Phase
      • validate

        public void validate()
                      throws PhaseException
        Validate "sane" rules - cannot have both phaseFirst/phaseLast and before/after
        Throws:
        PhaseException - if phaseFirst/phaseLast is set along with before/after