org.overlord.sramp.client.jar
Class DiscoveredArtifact

java.lang.Object
  extended by org.overlord.sramp.client.jar.DiscoveredArtifact

public class DiscoveredArtifact
extends Object

An artifact that will be incuded in the final S-RAMP archive.

Author:
eric.wittmann@redhat.com

Constructor Summary
DiscoveredArtifact(File file)
          Constructor.
 
Method Summary
 String getArchivePath()
           
 InputStream getContent()
          Returns an InputStream over the content of the artifact.
 File getFile()
           
 BaseArtifactType getMetaData()
           
 String getName()
          Gets the short name of the artifact.
 void setArchivePath(String archivePath)
           
 void setFile(File file)
           
 void setMetaData(BaseArtifactType metaData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveredArtifact

public DiscoveredArtifact(File file)
Constructor.

Parameters:
file -
Method Detail

getFile

public File getFile()
Returns:
the file

setFile

public void setFile(File file)
Parameters:
file - the file to set

getArchivePath

public String getArchivePath()
Returns:
the archivePath

setArchivePath

public void setArchivePath(String archivePath)
Parameters:
archivePath - the archivePath to set

getContent

public InputStream getContent()
                       throws IOException
Returns an InputStream over the content of the artifact.

Throws:
IOException

getMetaData

public BaseArtifactType getMetaData()
Returns:
the metaData

setMetaData

public void setMetaData(BaseArtifactType metaData)
Parameters:
metaData - the metaData to set

getName

public String getName()
Gets the short name of the artifact.



Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.