Class ConvertedEntity
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.versionedSettings.ConvertedEntity
-
public class ConvertedEntity extends Object
Represent an entity affected by a converter. Can be of known type (ie. notConvertedEntity.Type.UNKNOWN), in this case itsgetInternalId()method return entity's internal id or unknown, in this case path to changed file can be retrieved via thegetPath()method.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConvertedEntitycreateEntity(jetbrains.buildServer.serverSide.impl.versionedSettings.ConvertedEntity.Type type, String internalId)Returns new converted entity of the specified type and internal id.static ConvertedEntitycreateUnknownEntity(String relativePath)Returns new converted entity of unknown type with the specified path relative to project dirbooleanequals(Object o)StringgetInternalId()Returns string representation of converted entity internal id (if its type is notType.UNKNOWN).StringgetPath()Returns relative path for converted entity of typeType.UNKNOWNfrom project dir, returns null for other types.jetbrains.buildServer.serverSide.impl.versionedSettings.ConvertedEntity.TypegetType()Returns converted entity typeinthashCode()StringtoString()
-
-
-
Method Detail
-
createUnknownEntity
@NotNull public static ConvertedEntity createUnknownEntity(@NotNull String relativePath)
Returns new converted entity of unknown type with the specified path relative to project dir- Parameters:
relativePath- converted config path- Returns:
- see above
-
createEntity
@NotNull public static ConvertedEntity createEntity(@NotNull jetbrains.buildServer.serverSide.impl.versionedSettings.ConvertedEntity.Type type, @NotNull String internalId)
Returns new converted entity of the specified type and internal id. For typeConvertedEntity.Type.UNKNOWNthecreateEntity(Type, String)must be used.- Parameters:
type- converted entity typeinternalId- string representation of converted entity internal id- Returns:
- see above
-
getInternalId
@Nullable public String getInternalId()
Returns string representation of converted entity internal id (if its type is notType.UNKNOWN).- Returns:
- see above
-
getType
@NotNull public jetbrains.buildServer.serverSide.impl.versionedSettings.ConvertedEntity.Type getType()
Returns converted entity type- Returns:
- see above
-
getPath
@Nullable public String getPath()
Returns relative path for converted entity of typeType.UNKNOWNfrom project dir, returns null for other types.- Returns:
- see above
-
-