Package org.testng.internal
Enum ParameterHolder.ParameterOrigin
- java.lang.Object
-
- java.lang.Enum<ParameterHolder.ParameterOrigin>
-
- org.testng.internal.ParameterHolder.ParameterOrigin
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ParameterHolder.ParameterOrigin>
- Enclosing class:
- ParameterHolder
public static enum ParameterHolder.ParameterOrigin extends java.lang.Enum<ParameterHolder.ParameterOrigin>
Origin of the parameters.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NATIVE
ORIGIN_DATA_PROVIDER
ORIGIN_XML
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ParameterHolder.ParameterOrigin
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ParameterHolder.ParameterOrigin[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ORIGIN_DATA_PROVIDER
public static final ParameterHolder.ParameterOrigin ORIGIN_DATA_PROVIDER
-
ORIGIN_XML
public static final ParameterHolder.ParameterOrigin ORIGIN_XML
-
NATIVE
public static final ParameterHolder.ParameterOrigin NATIVE
-
-
Method Detail
-
values
public static ParameterHolder.ParameterOrigin[] 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 (ParameterHolder.ParameterOrigin c : ParameterHolder.ParameterOrigin.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParameterHolder.ParameterOrigin valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-