jetbrains.buildServer.vcs
Enum VcsChangeInfo.Type

java.lang.Object
  extended by java.lang.Enum<VcsChangeInfo.Type>
      extended by jetbrains.buildServer.vcs.VcsChangeInfo.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<VcsChangeInfo.Type>
Enclosing interface:
VcsChangeInfo

public static enum VcsChangeInfo.Type
extends java.lang.Enum<VcsChangeInfo.Type>

Type of file change


Enum Constant Summary
ADDED
          File added
CHANGED
          File name, properties or content changed
DIRECTORY_ADDED
           
DIRECTORY_CHANGED
           
DIRECTORY_REMOVED
           
NOT_CHANGED
           
REMOVED
          File removed
 
Method Summary
 java.lang.String getDescription()
          Returns string representation of the change type.
 boolean isAdded()
          Returns true if the file type is 'added'.
 boolean isDirectory()
           
 boolean isRemoved()
          Returns true if the file type is 'removed'.
static VcsChangeInfo.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static VcsChangeInfo.Type[] 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

CHANGED

public static final VcsChangeInfo.Type CHANGED
File name, properties or content changed


ADDED

public static final VcsChangeInfo.Type ADDED
File added


REMOVED

public static final VcsChangeInfo.Type REMOVED
File removed


DIRECTORY_CHANGED

public static final VcsChangeInfo.Type DIRECTORY_CHANGED

DIRECTORY_ADDED

public static final VcsChangeInfo.Type DIRECTORY_ADDED

DIRECTORY_REMOVED

public static final VcsChangeInfo.Type DIRECTORY_REMOVED

NOT_CHANGED

public static final VcsChangeInfo.Type NOT_CHANGED
Method Detail

values

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

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

valueOf

public static VcsChangeInfo.Type 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 name
java.lang.NullPointerException - if the argument is null

getDescription

public java.lang.String getDescription()
Returns string representation of the change type.

Returns:
see above

isDirectory

public boolean isDirectory()

isAdded

public boolean isAdded()
Returns true if the file type is 'added'.

Returns:
true if the file type is 'added'
Since:
5.1

isRemoved

public boolean isRemoved()
Returns true if the file type is 'removed'.

Returns:
true if the file type is 'removed'
Since:
5.1