Interface ModelTransformerPlugin
- 
- All Known Implementing Classes:
 CleanBindings,CleanClientDiscoveryTraitTransformer,CleanEndpointTestOperationInput,CleanOperationStructures,CleanResourceReferences,CleanServiceRenames,CleanStructureAndUnionMembers,CleanTraitDefinitions,RemoveMixins,RemoveTraits
public interface ModelTransformerPluginPlugin service used with ModelTransformer.Implementations of this service are found via SPI. Each time a shape is removed from a model,
onRemove(software.amazon.smithy.model.transform.ModelTransformer, java.util.Collection<software.amazon.smithy.model.shapes.Shape>, software.amazon.smithy.model.Model)is called and given an opportunity to create and return a newly transformed model. 
- 
- 
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ModelonRemove(ModelTransformer transformer, java.util.Collection<Shape> removed, Model model)The method that is invoked each time shapes are removed from a model. 
 - 
 
- 
- 
Method Detail
- 
onRemove
default Model onRemove(ModelTransformer transformer, java.util.Collection<Shape> removed, Model model)
The method that is invoked each time shapes are removed from a model.- Parameters:
 transformer- Transformer used to replace/remove shapes from the model.removed- 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.
 
 
 - 
 
 -