Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.faces.event
Class PhaseId  view PhaseId download PhaseId.java

java.lang.Object
  extended byjavax.faces.event.PhaseId
All Implemented Interfaces:
java.lang.Comparable

public class PhaseId
extends java.lang.Object
implements java.lang.Comparable

Version:
$Revision: 265611 $ $Date: 2005-08-31 21:05:16 -0400 (Wed, 31 Aug 2005) $

Field Summary
private  java.lang.String _name
           
private  int _ordinal
           
static PhaseId ANY_PHASE
           
static PhaseId APPLY_REQUEST_VALUES
           
static PhaseId INVOKE_APPLICATION
           
static PhaseId PROCESS_VALIDATIONS
           
static PhaseId RENDER_RESPONSE
           
static PhaseId RESTORE_VIEW
           
static PhaseId UPDATE_MODEL_VALUES
           
static java.util.List VALUES
           
 
Constructor Summary
private PhaseId(java.lang.String name, int ordinal)
           
 
Method Summary
 int compareTo(java.lang.Object other)
          Compares this object with another, and returns a numerical result based on the comparison.
 int getOrdinal()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ANY_PHASE

public static final PhaseId ANY_PHASE

APPLY_REQUEST_VALUES

public static final PhaseId APPLY_REQUEST_VALUES

INVOKE_APPLICATION

public static final PhaseId INVOKE_APPLICATION

PROCESS_VALIDATIONS

public static final PhaseId PROCESS_VALIDATIONS

RENDER_RESPONSE

public static final PhaseId RENDER_RESPONSE

RESTORE_VIEW

public static final PhaseId RESTORE_VIEW

UPDATE_MODEL_VALUES

public static final PhaseId UPDATE_MODEL_VALUES

VALUES

public static final java.util.List VALUES

_name

private final java.lang.String _name

_ordinal

private final int _ordinal
Constructor Detail

PhaseId

private PhaseId(java.lang.String name,
                int ordinal)
Method Detail

compareTo

public int compareTo(java.lang.Object other)
Description copied from interface: java.lang.Comparable
Compares this object with another, and returns a numerical result based on the comparison. If the result is negative, this object sorts less than the other; if 0, the two are equal, and if positive, this object sorts greater than the other. To translate this into boolean, simply perform o1.compareTo(o2) <op> 0, where op is one of <, <=, =, !=, >, or >=.

You must make sure that the comparison is mutual, ie. sgn(x.compareTo(y)) == -sgn(y.compareTo(x)) (where sgn() is defined as -1, 0, or 1 based on the sign). This includes throwing an exception in either direction if the two are not comparable; hence, compareTo(null) should always throw an Exception.

You should also ensure transitivity, in two forms: x.compareTo(y) > 0 && y.compareTo(z) > 0 implies x.compareTo(z) > 0; and x.compareTo(y) == 0 implies x.compareTo(z) == y.compareTo(z).

Specified by:
compareTo in interface java.lang.Comparable

getOrdinal

public int getOrdinal()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).