org.milyn.delivery.dom
Enum VisitPhase

java.lang.Object
  extended by java.lang.Enum<VisitPhase>
      extended by org.milyn.delivery.dom.VisitPhase
All Implemented Interfaces:
Serializable, Comparable<VisitPhase>

public enum VisitPhase
extends Enum<VisitPhase>

DOM Phase phase enumerations.

Used in conjunction with the Phase annotation to specify the Visit Phase during which a DOMElementVisitor is to be applied.

Author:
tom.fennelly@gmail.com

Enum Constant Summary
ASSEMBLY
          Apply the DOMElementVisitor during the Assembly visit phase.
PROCESSING
          Apply the DOMElementVisitor during the Processing visit phase.
 
Method Summary
static VisitPhase valueOf(String name)
          Returns the enum constant of this type with the specified name.
static VisitPhase[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ASSEMBLY

public static final VisitPhase ASSEMBLY
Apply the DOMElementVisitor during the Assembly visit phase.


PROCESSING

public static final VisitPhase PROCESSING
Apply the DOMElementVisitor during the Processing visit phase.

Method Detail

values

public static final VisitPhase[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(VisitPhase c : VisitPhase.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static VisitPhase valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2008. All Rights Reserved.