Enum VisitPhase
- java.lang.Object
-
- java.lang.Enum<VisitPhase>
-
- org.smooks.api.resource.visitor.dom.VisitPhase
-
- All Implemented Interfaces:
Serializable,Comparable<VisitPhase>
public enum VisitPhase extends Enum<VisitPhase>
DOM Phase phase enumerations. Used in conjunction with thePhaseannotation to specify the Visit Phase during which aDOMElementVisitoris to be applied.- Author:
- tom.fennelly@gmail.com
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASSEMBLYApply theDOMElementVisitorduring the Assembly visit phase.PROCESSINGApply theDOMElementVisitorduring the Processing visit phase.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VisitPhasevalueOf(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 are declared.
-
-
-
Enum Constant Detail
-
ASSEMBLY
public static final VisitPhase ASSEMBLY
Apply theDOMElementVisitorduring the Assembly visit phase.
-
PROCESSING
public static final VisitPhase PROCESSING
Apply theDOMElementVisitorduring the Processing visit phase.
-
-
Method Detail
-
values
public static VisitPhase[] values()
Returns an array containing the constants of this enum type, in the order they are 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 are 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 nameNullPointerException- if the argument is null
-
-