org.apache.tuscany.sca.contribution
Interface Artifact

All Superinterfaces:
Base
All Known Subinterfaces:
Contribution, DeployedArtifact, Workspace

public interface Artifact
extends Base

Represents an artifact in an SCA contribution.


Method Summary
 byte[] getContents()
          Returns the contents of the artifact cached here.
 java.lang.String getLocation()
          Returns the location of the artifact.
 java.lang.Object getModel()
          Returns the in-memory model representing the artifact.
 java.lang.String getURI()
          Returns the URI that unique identifies the artifact inside the contribution.
 void setContents(byte[] contents)
          Sets the contents of the artifact.
 void setLocation(java.lang.String location)
          Set the location of the artifact.
 void setModel(java.lang.Object model)
          Sets the in-memory model representing the artifact.
 void setURI(java.lang.String uri)
          Sets the URI that uniquely identifies the artifact inside the contribution.
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Base
isUnresolved, setUnresolved
 

Method Detail

getURI

java.lang.String getURI()
Returns the URI that unique identifies the artifact inside the contribution.

Returns:
The artifact URI

setURI

void setURI(java.lang.String uri)
Sets the URI that uniquely identifies the artifact inside the contribution.

Parameters:
uri - The artifact URI

getLocation

java.lang.String getLocation()
Returns the location of the artifact.

Returns:
The artifact location

setLocation

void setLocation(java.lang.String location)
Set the location of the artifact.

Parameters:
location - The artifact location

getModel

java.lang.Object getModel()
Returns the in-memory model representing the artifact.

Returns:
The model object

setModel

void setModel(java.lang.Object model)
Sets the in-memory model representing the artifact.

Parameters:
model - The model object

getContents

byte[] getContents()
Returns the contents of the artifact cached here.

Returns:
the contents of the artifact

setContents

void setContents(byte[] contents)
Sets the contents of the artifact.

Parameters:
contents - the contents of the artifact