org.jfrog.build.api
Class Dependency

java.lang.Object
  extended by org.jfrog.build.api.BaseBuildBean
      extended by org.jfrog.build.api.BaseBuildFileBean
          extended by org.jfrog.build.api.Dependency
All Implemented Interfaces:
java.io.Serializable, BuildBean, BuildFileBean

public class Dependency
extends BaseBuildFileBean

Contains the build module dependency information

See Also:
Serialized Form

Field Summary
static java.lang.String SCOPE_BUILD
           
 
Fields inherited from class org.jfrog.build.api.BaseBuildFileBean
md5, sha1, type
 
Fields inherited from interface org.jfrog.build.api.BuildBean
ARTIFACT, ARTIFACTS, DEPENDENCIES, DEPENDENCY, EXCLUDED_ARTIFACTS, MODULE, MODULES, ROOT, RUN_PARAMETERS
 
Constructor Summary
Dependency()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getId()
          Returns the ID of the dependency
 java.util.List<java.lang.String> getRequiredBy()
          Returns an ID list of dependencies that directly depend on this dependency.
 java.util.Set<java.lang.String> getScopes()
          Returns the scope list of the dependency
 int hashCode()
           
 void setId(java.lang.String id)
          Sets the ID of the dependency
 void setRequiredBy(java.util.List<java.lang.String> requiredBy)
          Sets an ID list of dependencies that directly depend on this dependency.
 void setScopes(java.util.Set<java.lang.String> scopes)
          Sets the scope list of the dependency
 
Methods inherited from class org.jfrog.build.api.BaseBuildFileBean
getMd5, getSha1, getType, setMd5, setSha1, setType
 
Methods inherited from class org.jfrog.build.api.BaseBuildBean
getProperties, setProperties
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jfrog.build.api.BuildBean
getProperties, setProperties
 

Field Detail

SCOPE_BUILD

public static final java.lang.String SCOPE_BUILD
See Also:
Constant Field Values
Constructor Detail

Dependency

public Dependency()
Method Detail

getId

public java.lang.String getId()
Returns the ID of the dependency

Returns:
Dependency ID

setId

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

Parameters:
id - Dependency ID

getScopes

public java.util.Set<java.lang.String> getScopes()
Returns the scope list of the dependency

Returns:
Dependency scope list

setScopes

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

Parameters:
scopes - Dependency scope list

getRequiredBy

public java.util.List<java.lang.String> getRequiredBy()
Returns an ID list of dependencies that directly depend on this dependency. Used for building the module's transitive dependency graph. Can be left empty if a root dependency.

Returns:
Required dependency IDs list

setRequiredBy

public void setRequiredBy(java.util.List<java.lang.String> requiredBy)
Sets an ID list of dependencies that directly depend on this dependency.

Parameters:
requiredBy - Required dependency IDs list

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class BaseBuildFileBean

hashCode

public int hashCode()
Overrides:
hashCode in class BaseBuildFileBean