Class BooleanTrait.Provider<T extends BooleanTrait>
- java.lang.Object
-
- software.amazon.smithy.model.traits.AbstractTrait.Provider
-
- software.amazon.smithy.model.traits.BooleanTrait.Provider<T>
-
- All Implemented Interfaces:
TraitService
- Direct Known Subclasses:
BoxTrait.Provider
,EventHeaderTrait.Provider
,EventPayloadTrait.Provider
,EventStreamTrait.Provider
,HostLabelTrait.Provider
,HttpLabelTrait.Provider
,HttpPayloadTrait.Provider
,IdempotencyTokenTrait.Provider
,IdempotentTrait.Provider
,PrivateTrait.Provider
,ReadonlyTrait.Provider
,RequiredTrait.Provider
,SensitiveTrait.Provider
,UniqueItemsTrait.Provider
,XmlAttributeTrait.Provider
,XmlFlattenedTrait.Provider
- Enclosing class:
- BooleanTrait
public static class BooleanTrait.Provider<T extends BooleanTrait> extends AbstractTrait.Provider
Trait provider that expects a boolean value of true.
-
-
Constructor Summary
Constructors Constructor Description Provider(ShapeId id, java.util.function.Function<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.Function<SourceLocation,T> traitFactory)
- Parameters:
id
- ID of the trait being created.traitFactory
- Factory function 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.
-
-