Package org.ow2.authzforce.core.pdp.api
Enum EnvironmentPropertyName
- java.lang.Object
-
- java.lang.Enum<EnvironmentPropertyName>
-
- org.ow2.authzforce.core.pdp.api.EnvironmentPropertyName
-
- All Implemented Interfaces:
Serializable
,Comparable<EnvironmentPropertyName>
public enum EnvironmentPropertyName extends Enum<EnvironmentPropertyName>
Enumeration of property names (or so-called global variables) usable in PDP configuration strings in form of ${PROPERTY_NAME}, set by the PDP configuration parser. PDP modules can then replace them during instantiation usingEnvironmentProperties.replacePlaceholders(String)
when a EnvironmentProperties object is provided.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PARENT_DIR
PDP configuration file's parent directory if the PDP configuration is loaded from a file.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EnvironmentPropertyName
valueOf(String name)
Returns the enum constant of this type with the specified name.static EnvironmentPropertyName[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PARENT_DIR
public static final EnvironmentPropertyName PARENT_DIR
PDP configuration file's parent directory if the PDP configuration is loaded from a file. This property can be used in file paths to resolve paths relative to this parent directory.
-
-
Method Detail
-
values
public static EnvironmentPropertyName[] 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 (EnvironmentPropertyName c : EnvironmentPropertyName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EnvironmentPropertyName 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
-
-