Package jetbrains.buildServer.vcs
Enum VcsChangeInfo.Type
- java.lang.Object
-
- java.lang.Enum<VcsChangeInfo.Type>
-
- 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
Enum Constants Enum Constant Description ADDED
File addedCHANGED
File name, properties or content changedDIRECTORY_ADDED
DIRECTORY_CHANGED
DIRECTORY_COPIED
This type should be used when a directory was replaced or added with multiple subdirectories, and when these subdirectories are not reported separately in the change.DIRECTORY_REMOVED
NOT_CHANGED
REMOVED
File removed
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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
-
DIRECTORY_COPIED
public static final VcsChangeInfo.Type DIRECTORY_COPIED
This type should be used when a directory was replaced or added with multiple subdirectories, and when these subdirectories are not reported separately in the change. I.e. this file type indicates that this change may affect multiple subdirectories under the given path.- Since:
- 8.1.x
-
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 namejava.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
-
-