Class StringListTrait.Provider<T extends StringListTrait>
java.lang.Object
software.amazon.smithy.model.traits.AbstractTrait.Provider
software.amazon.smithy.model.traits.StringListTrait.Provider<T>
- All Implemented Interfaces:
TraitService
- Direct Known Subclasses:
ConditionKeysTrait.Provider
,RequiredActionsTrait.Provider
,ServiceResolvedConditionKeysTrait.Provider
,SupportedPrincipalTypesTrait.Provider
,SuppressTrait.Provider
,TagsTrait.Provider
- Enclosing class:
- StringListTrait
public static class StringListTrait.Provider<T extends StringListTrait>
extends AbstractTrait.Provider
Trait provider that expects a list of string values.
-
Constructor Summary
ConstructorDescriptionProvider
(ShapeId id, BiFunction<List<String>, SourceLocation, T> traitFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateTrait
(ShapeId id, Node value) Creates the trait from a node value.Methods inherited from class software.amazon.smithy.model.traits.AbstractTrait.Provider
getShapeId
-
Constructor Details
-
Provider
- Parameters:
id
- The ID of the trait being created.traitFactory
- The factory used to create the trait.
-
-
Method Details
-
createTrait
Description copied from interface:TraitService
Creates the trait from a node value.- Parameters:
id
- The shape targeted by the trait.value
- The value of the trait.- Returns:
- Returns the created trait.
-