Class PhaseId
- java.lang.Object
- 
- jakarta.faces.event.PhaseId
 
- 
- All Implemented Interfaces:
- Comparable
 
 public class PhaseId extends Object implements Comparable Typesafe enumeration of the legal values that may be returned by the getPhaseId()method of theFacesEventinterface.
- 
- 
Field SummaryFields Modifier and Type Field Description static PhaseIdANY_PHASEIdentifier that indicates an interest in events, no matter which request processing phase is being performed.static PhaseIdAPPLY_REQUEST_VALUESIdentifier that indicates an interest in events queued for the Apply Request Values phase of the request processing lifecycle.static PhaseIdINVOKE_APPLICATIONIdentifier that indicates an interest in events queued for the Invoke Application phase of the request processing lifecycle.static PhaseIdPROCESS_VALIDATIONSIdentifier that indicates an interest in events queued for the Process Validations phase of the request processing lifecycle.static PhaseIdRENDER_RESPONSEIdentifier for the Render Response phase of the request processing lifecycle.static PhaseIdRESTORE_VIEWIdentifier that indicates an interest in events queued for the Restore View phase of the request processing lifecycle.static PhaseIdUPDATE_MODEL_VALUESIdentifier that indicates an interest in events queued for the Update Model Values phase of the request processing lifecycle.static List<PhaseId>VALUESList of validPhaseIdinstances, in ascending order of their ordinal value.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object other)Compare thisPhaseIdinstance to the specified one.StringgetName()Return the name of this phase.intgetOrdinal()Return the ordinal value of thisPhaseIdinstance.static PhaseIdphaseIdValueOf(String phase)Return aPhaseIdrepresentation of the arcumentphase.StringtoString()Return a String representation of thisPhaseIdinstance.
 
- 
- 
- 
Field Detail- 
ANY_PHASEpublic static final PhaseId ANY_PHASE Identifier that indicates an interest in events, no matter which request processing phase is being performed. 
 - 
RESTORE_VIEWpublic static final PhaseId RESTORE_VIEW Identifier that indicates an interest in events queued for the Restore View phase of the request processing lifecycle. 
 - 
APPLY_REQUEST_VALUESpublic static final PhaseId APPLY_REQUEST_VALUES Identifier that indicates an interest in events queued for the Apply Request Values phase of the request processing lifecycle. 
 - 
PROCESS_VALIDATIONSpublic static final PhaseId PROCESS_VALIDATIONS Identifier that indicates an interest in events queued for the Process Validations phase of the request processing lifecycle. 
 - 
UPDATE_MODEL_VALUESpublic static final PhaseId UPDATE_MODEL_VALUES Identifier that indicates an interest in events queued for the Update Model Values phase of the request processing lifecycle. 
 - 
INVOKE_APPLICATIONpublic static final PhaseId INVOKE_APPLICATION Identifier that indicates an interest in events queued for the Invoke Application phase of the request processing lifecycle. 
 - 
RENDER_RESPONSEpublic static final PhaseId RENDER_RESPONSE Identifier for the Render Response phase of the request processing lifecycle. 
 
- 
 - 
Method Detail- 
compareTopublic int compareTo(Object other) Compare this PhaseIdinstance to the specified one. Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object.- Specified by:
- compareToin interface- Comparable
- Parameters:
- other- The other object to be compared to
 
 - 
getOrdinalpublic int getOrdinal() Return the ordinal value of this PhaseIdinstance.- Returns:
- the ordinal
 
 - 
getNamepublic String getName() Return the name of this phase. - Returns:
- the name
- Since:
- 2.2
 
 - 
phaseIdValueOfpublic static PhaseId phaseIdValueOf(String phase) Return a PhaseIdrepresentation of the arcumentphase.- Parameters:
- phase- the String for which the corresponding- PhaseIdshould be returned.
- Returns:
- the phase id corresponding to the argument phase
- Throws:
- NullPointerException- if argument- phaseis- null.
- FacesException- if the- PhaseIdcorresponding to the argument- phasecannot be found.
- Since:
- 2.2
 
 
- 
 
-