public class DependenciesCapability extends ServiceCapability<List<DependencyGroup>>
ServiceCapability
listing the available dependencies defined as a
ServiceCapabilityType.HIERARCHICAL_MULTI_SELECT
capability.Constructor and Description |
---|
DependenciesCapability() |
Modifier and Type | Method and Description |
---|---|
Dependency |
get(String id)
Return the
Dependency with the specified id or null if no such
dependency exists. |
Collection<Dependency> |
getAll()
Return all dependencies as a flat collection.
|
List<DependencyGroup> |
getContent()
Return the "content" of this capability.
|
void |
merge(List<DependencyGroup> otherContent)
Merge the content of this instance with the specified content.
|
void |
updateCompatibilityRange(VersionParser versionParser) |
void |
validate() |
getDescription, getId, getTitle, getType, merge, setDescription, setTitle
public List<DependencyGroup> getContent()
ServiceCapability
type
of the capability.getContent
in class ServiceCapability<List<DependencyGroup>>
public Dependency get(String id)
Dependency
with the specified id or null
if no such
dependency exists.id
- the ID of the dependencynull
public Collection<Dependency> getAll()
public void validate()
public void updateCompatibilityRange(VersionParser versionParser)
public void merge(List<DependencyGroup> otherContent)
ServiceCapability
merge
in class ServiceCapability<List<DependencyGroup>>
otherContent
- the content to mergeServiceCapability.merge(io.spring.initializr.metadata.ServiceCapability)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.