Class CleanResourceReferences
- java.lang.Object
- 
- software.amazon.smithy.model.transform.plugins.CleanResourceReferences
 
- 
- All Implemented Interfaces:
- ModelTransformerPlugin
 
 public final class CleanResourceReferences extends java.lang.Object implements ModelTransformerPlugin Removes references to resources that are removed fromReferencesTraits.
- 
- 
Constructor SummaryConstructors Constructor Description CleanResourceReferences()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelonRemove(ModelTransformer transformer, java.util.Collection<Shape> shapes, Model model)The method that is invoked each time shapes are removed from a model.
 
- 
- 
- 
Method Detail- 
onRemovepublic Model onRemove(ModelTransformer transformer, java.util.Collection<Shape> shapes, Model model) Description copied from interface:ModelTransformerPluginThe method that is invoked each time shapes are removed from a model.- Specified by:
- onRemovein interface- ModelTransformerPlugin
- Parameters:
- transformer- Transformer used to replace/remove shapes from the model.
- shapes- The of shapes that were removed from the- model.
- model- Model that has been altered to remove- removed.
- Returns:
- Returns a transformed version of the passed in model.
 
 
- 
 
-