org.jfrog.build.api.builder
Class DependencyBuilder

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

public class DependencyBuilder
extends java.lang.Object

A builder for the dependency class


Constructor Summary
DependencyBuilder()
           
 
Method Summary
 DependencyBuilder addProperty(java.lang.Object key, java.lang.Object value)
          Adds the given property to the properties object
 DependencyBuilder addRequiredBy(java.lang.String requiredBy)
          Adds an ID of another dependency required by this one to the required dependencies list
 Dependency build()
          Assembles the dependency class
 DependencyBuilder id(java.lang.String id)
          Sets the ID of the dependency
 DependencyBuilder md5(java.lang.String md5)
          Sets the MD5 checksum of the dependency
 DependencyBuilder properties(java.util.Properties properties)
          Sets the properties of the dependency
 DependencyBuilder requiredBy(java.util.List<java.lang.String> requiredBy)
          Sets an ID list of other dependencies required by this one
 DependencyBuilder scopes(java.util.Set<java.lang.String> scopes)
          Sets the scope list of the dependency
 DependencyBuilder sha1(java.lang.String sha1)
          Sets the SHA1 checksum of the dependency
 DependencyBuilder type(java.lang.String type)
          Sets the type of the dependency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyBuilder

public DependencyBuilder()
Method Detail

build

public Dependency build()
Assembles the dependency class

Returns:
Assembled dependency

id

public DependencyBuilder id(java.lang.String id)
Sets the ID of the dependency

Parameters:
id - Dependency ID
Returns:
Builder instance

type

public DependencyBuilder type(java.lang.String type)
Sets the type of the dependency

Parameters:
type - Dependency type
Returns:
Builder instance

scopes

public DependencyBuilder scopes(java.util.Set<java.lang.String> scopes)
Sets the scope list of the dependency

Parameters:
scopes - Dependency scope list
Returns:
Builder instance

sha1

public DependencyBuilder sha1(java.lang.String sha1)
Sets the SHA1 checksum of the dependency

Parameters:
sha1 - Dependency SHA1 checksum
Returns:
Builder instance

md5

public DependencyBuilder md5(java.lang.String md5)
Sets the MD5 checksum of the dependency

Parameters:
md5 - Dependency MD5 checksum
Returns:
Builder instance

requiredBy

public DependencyBuilder requiredBy(java.util.List<java.lang.String> requiredBy)
Sets an ID list of other dependencies required by this one

Parameters:
requiredBy - Required dependency IDs list
Returns:
Builder instance

addRequiredBy

public DependencyBuilder addRequiredBy(java.lang.String requiredBy)
Adds an ID of another dependency required by this one to the required dependencies list

Parameters:
requiredBy - Required dependency ID
Returns:
Builder instance

properties

public DependencyBuilder properties(java.util.Properties properties)
Sets the properties of the dependency

Parameters:
properties - Dependency properties
Returns:
Builder instance

addProperty

public DependencyBuilder 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