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
Constructors Constructor Description Provider(ShapeId id, java.util.function.BiFunction<java.util.List<java.lang.String>,SourceLocation,T> traitFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
createTrait(ShapeId id, Node value)
Creates the trait from a node value.-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTrait.Provider
getShapeId
-
-
-
-
Constructor Detail
-
Provider
public Provider(ShapeId id, java.util.function.BiFunction<java.util.List<java.lang.String>,SourceLocation,T> traitFactory)
- Parameters:
id
- The ID of the trait being created.traitFactory
- The factory used to create the trait.
-
-
Method Detail
-
createTrait
public T createTrait(ShapeId id, Node value)
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.
-
-