Package io.spring.initializr.metadata
Class DependenciesCapability
java.lang.Object
io.spring.initializr.metadata.ServiceCapability<List<DependencyGroup>>
io.spring.initializr.metadata.DependenciesCapability
- All Implemented Interfaces:
Cloneable
A
ServiceCapability
listing the available dependencies defined as a
ServiceCapabilityType.HIERARCHICAL_MULTI_SELECT
capability.- Author:
- Stephane Nicoll
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn theDependency
with the specified id ornull
if no such dependency exists.getAll()
Return all dependencies as a flat collection.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()
Methods inherited from class io.spring.initializr.metadata.ServiceCapability
getDescription, getId, getTitle, getType, merge, setDescription, setTitle
-
Constructor Details
-
DependenciesCapability
public DependenciesCapability()
-
-
Method Details
-
getContent
Description copied from class:ServiceCapability
Return the "content" of this capability. The structure of the content vastly depends on thetype
of the capability.- Specified by:
getContent
in classServiceCapability<List<DependencyGroup>>
- Returns:
- the content
-
get
Return theDependency
with the specified id ornull
if no such dependency exists.- Parameters:
id
- the ID of the dependency- Returns:
- the dependency or
null
-
getAll
Return all dependencies as a flat collection.- Returns:
- all dependencies
-
validate
public void validate() -
updateCompatibilityRange
-
merge
Description copied from class:ServiceCapability
Merge the content of this instance with the specified content.- Specified by:
merge
in classServiceCapability<List<DependencyGroup>>
- Parameters:
otherContent
- the content to merge- See Also:
-