Class MixinTrait.Provider
java.lang.Object
software.amazon.smithy.model.traits.MixinTrait.Provider
- All Implemented Interfaces:
TraitService
- Enclosing class:
- MixinTrait
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTrait(ShapeId target, Node value) Creates the trait from a node value.
-
Constructor Details
-
Provider
public Provider()
-
-
Method Details
-
getShapeId
- Specified by:
getShapeIdin interfaceTraitService- Returns:
- Gets the shape ID of the trait that this provider created.
-
createTrait
Description copied from interface:TraitServiceCreates the trait from a node value.- Specified by:
createTraitin interfaceTraitService- Parameters:
target- The shape targeted by the trait.value- The value of the trait.- Returns:
- Returns the created trait.
-