Enum Class TestDescriptor.Type
- All Implemented Interfaces:
Serializable, Comparable<TestDescriptor.Type>, Constable
- Enclosing interface:
TestDescriptor
Supported types for
TestDescriptors.- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDenotes that theTestDescriptoris for a container.Denotes that theTestDescriptoris for a test that may potentially also be a container.Denotes that theTestDescriptoris for a test. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif this type represents a descriptor that can contain other descriptors.booleanisTest()Returnstrueif this type represents a descriptor for a test.static TestDescriptor.TypeReturns the enum constant of this class with the specified name.static TestDescriptor.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTAINER
Denotes that theTestDescriptoris for a container. -
TEST
Denotes that theTestDescriptoris for a test. -
CONTAINER_AND_TEST
Denotes that theTestDescriptoris for a test that may potentially also be a container.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isContainer
public boolean isContainer()Returnstrueif this type represents a descriptor that can contain other descriptors.- Returns:
trueif this type represents a descriptor that can contain other descriptors
-
isTest
public boolean isTest()Returnstrueif this type represents a descriptor for a test.- Returns:
trueif this type represents a descriptor for a test
-