org.jfrog.build.api
Class Dependency
java.lang.Object
org.jfrog.build.api.BaseBuildBean
org.jfrog.build.api.BaseBuildFileBean
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
|
Method Summary |
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.List<java.lang.String> |
getScopes()
Returns the scope list of the dependency |
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.List<java.lang.String> scopes)
Sets the scope list of the dependency |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCOPE_BUILD
public static final java.lang.String SCOPE_BUILD
- See Also:
- Constant Field Values
Dependency
public Dependency()
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.List<java.lang.String> getScopes()
- Returns the scope list of the dependency
- Returns:
- Dependency scope list
setScopes
public void setScopes(java.util.List<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