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 ConvertedEntity
createEntity(jetbrains.buildServer.serverSide.impl.versionedSettings.ConvertedEntity.Type type, String internalId)
Returns new converted entity of the specified type and internal id.static ConvertedEntity
createUnknownEntity(String relativePath)
Returns new converted entity of unknown type with the specified path relative to project dirboolean
equals(Object o)
String
getInternalId()
Returns string representation of converted entity internal id (if its type is notType.UNKNOWN
).String
getPath()
Returns relative path for converted entity of typeType.UNKNOWN
from project dir, returns null for other types.jetbrains.buildServer.serverSide.impl.versionedSettings.ConvertedEntity.Type
getType()
Returns converted entity typeint
hashCode()
String
toString()
-
-
-
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.UNKNOWN
thecreateEntity(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.UNKNOWN
from project dir, returns null for other types.- Returns:
- see above
-
-