Class AnyToAnyModelTransformation.RelationsSearchRule

  • All Implemented Interfaces:
    com.nomagic.magicdraw.search.SearchRule
    Enclosing class:
    AnyToAnyModelTransformation

    private class AnyToAnyModelTransformation.RelationsSearchRule
    extends java.lang.Object
    implements com.nomagic.magicdraw.search.SearchRule
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.nomagic.magicdraw.modeltransformations.ModelTransformationProfile modelTransformationProfile  
      (package private) java.util.Collection<Element> objects  
      private boolean update  
    • Field Detail

      • objects

        java.util.Collection<Element> objects
      • update

        private final boolean update
      • modelTransformationProfile

        private final com.nomagic.magicdraw.modeltransformations.ModelTransformationProfile modelTransformationProfile
    • Constructor Detail

      • RelationsSearchRule

        public RelationsSearchRule​(Project project,
                                   java.util.Collection<Element> objects,
                                   boolean update)
    • Method Detail

      • isLegal

        public boolean isLegal​(BaseElement e)
        Specified by:
        isLegal in interface com.nomagic.magicdraw.search.SearchRule
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.nomagic.magicdraw.search.SearchRule
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.nomagic.magicdraw.search.SearchRule
        Overrides:
        equals in class java.lang.Object