Class RemoveTraits
java.lang.Object
software.amazon.smithy.model.transform.plugins.RemoveTraits
- All Implemented Interfaces:
ModelTransformerPlugin
Removes traits from shapes when trait definitions are removed.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiononRemove
(ModelTransformer transformer, Collection<Shape> shapes, Model model) The method that is invoked each time shapes are removed from a model.
-
Constructor Details
-
RemoveTraits
public RemoveTraits()
-
-
Method Details
-
onRemove
Description copied from interface:ModelTransformerPlugin
The method that is invoked each time shapes are removed from a model.- Specified by:
onRemove
in interfaceModelTransformerPlugin
- Parameters:
transformer
- Transformer used to replace/remove shapes from the model.shapes
- The of shapes that were removed from themodel
.model
- Model that has been altered to removeremoved
.- Returns:
- Returns a transformed version of the passed in model.
-