public class PhaseRule extends Object implements Serializable
Constructor and Description |
---|
PhaseRule()
Constructor PhaseRule.
|
PhaseRule(String phaseName) |
Modifier and Type | Method and Description |
---|---|
String |
getAfter()
Method getAfter.
|
String |
getBefore()
Method getBefore.
|
String |
getPhaseName()
Method getPhaseName.
|
boolean |
isPhaseFirst()
Method isPhaseFirst.
|
boolean |
isPhaseLast()
Method isPhaseLast.
|
void |
setAfter(String after)
Set the "after" name for this rule.
|
void |
setBefore(String before)
Set the "before" name for this rule.
|
void |
setPhaseFirst(boolean phaseFirst)
Method setPhaseFirst.
|
void |
setPhaseLast(boolean phaseLast)
Method setPhaseLast.
|
void |
setPhaseName(String phaseName)
Method setPhaseName.
|
void |
validate()
Validate "sane" rules - cannot have both phaseFirst/phaseLast and before/after
|
public PhaseRule()
public PhaseRule(String phaseName)
public String getAfter()
public String getBefore()
public String getPhaseName()
public boolean isPhaseFirst()
public boolean isPhaseLast()
public void setAfter(String after)
after
- the name of the "after" handlerpublic void setBefore(String before)
before
- the name of the "before" handlerpublic void setPhaseFirst(boolean phaseFirst)
phaseFirst
- true if this rule defines the first Handler in a Phasepublic void setPhaseLast(boolean phaseLast)
phaseLast
- true if this rule defines the last Handler in a Phasepublic void setPhaseName(String phaseName)
phaseName
- the name of the Phasepublic void validate() throws PhaseException
PhaseException
- if phaseFirst/phaseLast is set along with before/afterCopyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.