Project: stp

javax.wvcm
Enum Version.Fork

Object
  extended by Enum<Version.Fork>
      extended by javax.wvcm.Version.Fork
All Implemented Interfaces:
Serializable, Comparable<Version.Fork>
Enclosing interface:
Version

public static enum Version.Fork
extends Enum<Version.Fork>

Valid values for the Version.CHECKIN_FORK and Version.CHECKOUT_FORK properties.


Enum Constant Summary
DISCOURAGED
          Forking is allowed only if specifically requested.
FORBIDDEN
          Forking is not allowed.
OK
          Forking is allowed without special options.
 
Method Summary
 String toString()
          Returns a string representation of this Fork suitable for diagnostics.
static Version.Fork valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Version.Fork[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DISCOURAGED

public static final Version.Fork DISCOURAGED
Forking is allowed only if specifically requested.


FORBIDDEN

public static final Version.Fork FORBIDDEN
Forking is not allowed.


OK

public static final Version.Fork OK
Forking is allowed without special options.

Method Detail

toString

public String toString()
Returns a string representation of this Fork suitable for diagnostics.

Overrides:
toString in class Enum<Version.Fork>

valueOf

public static Version.Fork 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

values

public static Version.Fork[] 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 (Version.Fork c : Version.Fork.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

Generated Wed 14-Mar-2018 10:38 PM

Copyright © IBM 2018. All rights reserved.