com.perforce.p4java.admin
Enum ServerConfigurationValue.ConfigType

java.lang.Object
  extended by java.lang.Enum<ServerConfigurationValue.ConfigType>
      extended by com.perforce.p4java.admin.ServerConfigurationValue.ConfigType
All Implemented Interfaces:
Serializable, Comparable<ServerConfigurationValue.ConfigType>
Enclosing class:
ServerConfigurationValue

public static enum ServerConfigurationValue.ConfigType
extends Enum<ServerConfigurationValue.ConfigType>

Currently-known server configuration value types. Deliberately not explained here -- see the main Perforce admin documentation.


Enum Constant Summary
CONFIGURE
           
ENVIRONMENT
           
OPTION
           
TUNABLE
           
UNKNOWN
           
 
Method Summary
static ServerConfigurationValue.ConfigType fromString(String str)
          Tolerant case-insensitive version of fromString.
static ServerConfigurationValue.ConfigType valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN

public static final ServerConfigurationValue.ConfigType UNKNOWN

OPTION

public static final ServerConfigurationValue.ConfigType OPTION

ENVIRONMENT

public static final ServerConfigurationValue.ConfigType ENVIRONMENT

TUNABLE

public static final ServerConfigurationValue.ConfigType TUNABLE

CONFIGURE

public static final ServerConfigurationValue.ConfigType 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(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 name
NullPointerException - if the argument is null

fromString

public static ServerConfigurationValue.ConfigType fromString(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.


Copyright © 2015 Perforce Software. All Rights Reserved.