org.jfrog.build.api.builder
Class ArtifactBuilder

java.lang.Object
  extended by org.jfrog.build.api.builder.ArtifactBuilder

public class ArtifactBuilder
extends java.lang.Object

A builder for the artifact class


Constructor Summary
ArtifactBuilder(java.lang.String name)
           
 
Method Summary
 ArtifactBuilder addProperty(java.lang.Object key, java.lang.Object value)
          Adds the given property to the properties object
 Artifact build()
          Assembles the artifact class
 ArtifactBuilder md5(java.lang.String md5)
          Sets the MD5 checksum of the artifact
 ArtifactBuilder name(java.lang.String name)
          Sets the name of the artifact
 ArtifactBuilder properties(java.util.Properties properties)
          Sets the properties of the artifact
 ArtifactBuilder sha1(java.lang.String sha1)
          Sets the SHA1 checksum of the artifact
 ArtifactBuilder type(java.lang.String type)
          Sets the type of the artifact
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtifactBuilder

public ArtifactBuilder(java.lang.String name)
Method Detail

build

public Artifact build()
Assembles the artifact class

Returns:
Assembled dependency

name

public ArtifactBuilder name(java.lang.String name)
Sets the name of the artifact

Parameters:
name - Artifact name
Returns:
Builder instance

type

public ArtifactBuilder type(java.lang.String type)
Sets the type of the artifact

Parameters:
type - Artifact type
Returns:
Builder instance

sha1

public ArtifactBuilder sha1(java.lang.String sha1)
Sets the SHA1 checksum of the artifact

Parameters:
sha1 - Artifact SHA1 checksum
Returns:
Builder instance

md5

public ArtifactBuilder md5(java.lang.String md5)
Sets the MD5 checksum of the artifact

Parameters:
md5 - Artifact MD5 checksum
Returns:
Builder instance

properties

public ArtifactBuilder properties(java.util.Properties properties)
Sets the properties of the artifact

Parameters:
properties - Artifact properties
Returns:
Builder instance

addProperty

public ArtifactBuilder addProperty(java.lang.Object key,
                                   java.lang.Object value)
Adds the given property to the properties object

Parameters:
key - Key of property to add
value - Value of property to add
Returns:
Builder instance