Class CleanBindings

  • All Implemented Interfaces:
    ModelTransformerPlugin

    public final class CleanBindings
    extends java.lang.Object
    implements ModelTransformerPlugin
    Removes operation bindings from resources and services when operations are removed, and removes resource bindings from services and resources when resources are removed.
    • Constructor Summary

      Constructors 
      Constructor Description
      CleanBindings()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Model onRemove​(ModelTransformer transformer, java.util.Collection<Shape> shapes, Model model)
      The method that is invoked each time shapes are removed from a model.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CleanBindings

        public CleanBindings()
    • Method Detail

      • onRemove

        public Model onRemove​(ModelTransformer transformer,
                              java.util.Collection<Shape> shapes,
                              Model model)
        Description copied from interface: ModelTransformerPlugin
        The method that is invoked each time shapes are removed from a model.
        Specified by:
        onRemove in 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.