Package org.testng.xml
Enum XmlSuite.ParallelMode
- java.lang.Object
-
- java.lang.Enum<XmlSuite.ParallelMode>
-
- org.testng.xml.XmlSuite.ParallelMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<XmlSuite.ParallelMode>
- Enclosing class:
- XmlSuite
public static enum XmlSuite.ParallelMode extends java.lang.Enum<XmlSuite.ParallelMode>
Parallel modes.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
isParallel
private java.lang.String
name
-
Constructor Summary
Constructors Modifier Constructor Description private
ParallelMode(java.lang.String name)
private
ParallelMode(java.lang.String name, boolean isParallel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XmlSuite.ParallelMode
getValidParallel(java.lang.String parallel)
boolean
isParallel()
java.lang.String
toString()
static XmlSuite.ParallelMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static XmlSuite.ParallelMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.private static void
warnUser(java.lang.String value, XmlSuite.ParallelMode mode)
-
-
-
Enum Constant Detail
-
TESTS
public static final XmlSuite.ParallelMode TESTS
-
METHODS
public static final XmlSuite.ParallelMode METHODS
-
CLASSES
public static final XmlSuite.ParallelMode CLASSES
-
INSTANCES
public static final XmlSuite.ParallelMode INSTANCES
-
NONE
public static final XmlSuite.ParallelMode NONE
-
-
Method Detail
-
values
public static XmlSuite.ParallelMode[] 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 (XmlSuite.ParallelMode c : XmlSuite.ParallelMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XmlSuite.ParallelMode 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
-
warnUser
private static void warnUser(java.lang.String value, XmlSuite.ParallelMode mode)
-
getValidParallel
public static XmlSuite.ParallelMode getValidParallel(java.lang.String parallel)
-
isParallel
public boolean isParallel()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<XmlSuite.ParallelMode>
-
-