Class ServiceCapability<T>
java.lang.Object
io.spring.initializr.metadata.ServiceCapability<T>
- Type Parameters:
T- the content type
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
DependenciesCapability, SingleSelectCapability, TextCapability, TypeCapability
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedServiceCapability(String id, ServiceCapabilityType type, @Nullable String title, @Nullable String description) -
Method Summary
Modifier and TypeMethodDescriptionabstract @Nullable TReturn the "content" of this capability.@Nullable StringgetId()@Nullable StringgetTitle()getType()abstract voidMerge the content of this instance with the specified content.voidmerge(ServiceCapability<T> other) Merge this capability with the specified argument.voidsetDescription(@Nullable String description) void
-
Constructor Details
-
ServiceCapability
protected ServiceCapability(String id, ServiceCapabilityType type, @Nullable String title, @Nullable String description)
-
-
Method Details
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getId
-
getType
-
getContent
-
merge
Merge the content of this instance with the specified content.- Parameters:
otherContent- the content to merge- See Also:
-
merge
Merge this capability with the specified argument. The service capabilities should match (i.e have the sameidandtype). Sub-classes may merge additional content.- Parameters:
other- the content to merge
-