Package com.perforce.p4java.admin
Enum ServerConfigurationValue.ConfigType
- java.lang.Object
-
- java.lang.Enum<ServerConfigurationValue.ConfigType>
-
- com.perforce.p4java.admin.ServerConfigurationValue.ConfigType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ServerConfigurationValue.ConfigType>
- Enclosing class:
- ServerConfigurationValue
public static enum ServerConfigurationValue.ConfigType extends java.lang.Enum<ServerConfigurationValue.ConfigType>
Currently-known server configuration value types. Deliberately not explained here -- see the main Perforce admin documentation.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServerConfigurationValue.ConfigType
fromString(java.lang.String str)
Tolerant case-insensitive version of fromString.static ServerConfigurationValue.ConfigType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ServerConfigurationValue.ConfigType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final ServerConfigurationValue.ConfigType DEFAULT
The default.
-
UNKNOWN
public static final ServerConfigurationValue.ConfigType UNKNOWN
The unknown.
-
OPTION
public static final ServerConfigurationValue.ConfigType OPTION
The option.
-
ENVIRONMENT
public static final ServerConfigurationValue.ConfigType ENVIRONMENT
The environment.
-
TUNABLE
public static final ServerConfigurationValue.ConfigType TUNABLE
The tunable.
-
CONFIGURE
public static final ServerConfigurationValue.ConfigType CONFIGURE
The configure.
-
-
Method Detail
-
values
public static ServerConfigurationValue.ConfigType[] 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 (ServerConfigurationValue.ConfigType c : ServerConfigurationValue.ConfigType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServerConfigurationValue.ConfigType 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
-
fromString
public static ServerConfigurationValue.ConfigType fromString(java.lang.String str)
Tolerant case-insensitive version of fromString.- Parameters:
str
- possibly-null candidate string.- Returns:
- corresponding ConfigType, or UNKNOWN if str was null or didn't seem to correspond to any known config type.
-
-