Enum DefaultProperties
- java.lang.Object
-
- java.lang.Enum<DefaultProperties>
-
- com.epam.reportportal.utils.properties.DefaultProperties
-
- All Implemented Interfaces:
PropertyHolder,java.io.Serializable,java.lang.Comparable<DefaultProperties>
public enum DefaultProperties extends java.lang.Enum<DefaultProperties> implements PropertyHolder
Default implementation ofPropertyHolderwith attribute names that should be retrieved: 1) internal - from the environment (OS, JVM) 2) external - from `*.properties` file
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()java.lang.String[]getPropertyKeys()booleanisInternal()static DefaultPropertiesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DefaultProperties[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OS
public static final DefaultProperties OS
-
JVM
public static final DefaultProperties JVM
-
AGENT
public static final DefaultProperties AGENT
-
-
Method Detail
-
values
public static DefaultProperties[] 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 (DefaultProperties c : DefaultProperties.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultProperties 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
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacePropertyHolder
-
isInternal
public boolean isInternal()
- Specified by:
isInternalin interfacePropertyHolder
-
getPropertyKeys
public java.lang.String[] getPropertyKeys()
- Specified by:
getPropertyKeysin interfacePropertyHolder
-
-