com.atlassian.bamboo.build.artifact
Interface ArtifactLink

All Known Implementing Classes:
DefaultArtifactLink

public interface ArtifactLink

Interface for a simple Artifact


Method Summary
 ResultsSummary getBuildResultsSummary()
           
 java.io.File getFile()
          Accessor for the actual file handle of the artifact.
 java.lang.String getLabel()
          Label of the Artifact
 java.lang.String getSizeDescription()
          Returns a human-readable version of the file size, where the input represents a specific number of bytes.
 java.lang.String getUrl()
          URL of the artifact relative to AdministrationConfiguration.getBaseUrl()
 boolean isExists()
          If the artifact link exists
 

Method Detail

getLabel

java.lang.String getLabel()
Label of the Artifact

Returns:
label

getUrl

@Nullable
java.lang.String getUrl()
URL of the artifact relative to AdministrationConfiguration.getBaseUrl()

Returns:
url

isExists

boolean isExists()
If the artifact link exists

Returns:
true if the artifact exists, false otherwise

getFile

@Nullable
java.io.File getFile()
Accessor for the actual file handle of the artifact.

Returns:
a File object pointing to either the file or directory of this artifact

getSizeDescription

java.lang.String getSizeDescription()
Returns a human-readable version of the file size, where the input represents a specific number of bytes.

Returns:
size description

getBuildResultsSummary

@Nullable
ResultsSummary getBuildResultsSummary()
Returns:
ResultsSummary which this artifact link belongs to. May be null if still not associated with ResultsSummary


Copyright © 2010 Atlassian. All Rights Reserved.