Class ConvertedEntity


  • public class ConvertedEntity
    extends Object
    Represent an entity affected by a converter. Can be of known type (ie. not ConvertedEntity.Type.UNKNOWN), in this case its getInternalId() method return entity's internal id or unknown, in this case path to changed file can be retrieved via the getPath() method.
    • 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 type ConvertedEntity.Type.UNKNOWN the createEntity(Type, String) must be used.
        Parameters:
        type - converted entity type
        internalId - 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 not Type.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 type Type.UNKNOWN from project dir, returns null for other types.
        Returns:
        see above
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object