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 theDependencywith the specified id ornullif no such dependency exists.getAll()Return all dependencies as a flat collection.Return the "content" of this capability.voidmerge(List<DependencyGroup> otherContent) Merge the content of this instance with the specified content.voidupdateCompatibilityRange(VersionParser versionParser) voidvalidate()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:ServiceCapabilityReturn the "content" of this capability. The structure of the content vastly depends on thetypeof the capability.- Specified by:
getContentin classServiceCapability<List<DependencyGroup>>- Returns:
- the content
-
get
Return theDependencywith the specified id ornullif 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:ServiceCapabilityMerge the content of this instance with the specified content.- Specified by:
mergein classServiceCapability<List<DependencyGroup>>- Parameters:
otherContent- the content to merge- See Also:
-