Class AbstractBslOwnerComputer

    • Field Detail

      • eClassBySegment

        protected Map<String,​org.eclipse.emf.ecore.EClass> eClassBySegment
      • commandEClassByEClass

        protected Map<org.eclipse.emf.ecore.EClass,​org.eclipse.emf.ecore.EClass> commandEClassByEClass
    • Constructor Detail

      • AbstractBslOwnerComputer

        public AbstractBslOwnerComputer()
    • Method Detail

      • initialize

        public void initialize​(String segment,
                               String eClassName,
                               String commandEClassName)
        Description copied from interface: IBslOwnerComputer
        Add special bound between the first part of module name, EClass of module owner and its command EClass
        Specified by:
        initialize in interface IBslOwnerComputer
        Parameters:
        segment - the first part of module name
        eClassName - corresponding owner EClass by the first module name
        commandEClassName - corresponding command EClass by the module owner EClass
      • getEClassByFirstSegmentModuleName

        public org.eclipse.emf.ecore.EClass getEClassByFirstSegmentModuleName​(String segment)
        Description copied from interface: IBslOwnerComputer
        Gets corresponding EClass by the first part of module name
        Specified by:
        getEClassByFirstSegmentModuleName in interface IBslOwnerComputer
        Parameters:
        segment - the first part of module name
        Returns:
        corresponding EClass or null
      • isContainsEClass

        public boolean isContainsEClass​(org.eclipse.emf.ecore.EClass eClass)
        Description copied from interface: IBslOwnerComputer
        Checks that this extension point has information about the EClass
        Specified by:
        isContainsEClass in interface IBslOwnerComputer
        Parameters:
        eClass - checking EClass
        Returns:
        true if this extension point has information about got EClass
      • getCommandByEClass

        public org.eclipse.emf.ecore.EClass getCommandByEClass​(org.eclipse.emf.ecore.EClass eClass)
        Description copied from interface: IBslOwnerComputer
        Gets corresponding EClass for command by owner EClass
        Specified by:
        getCommandByEClass in interface IBslOwnerComputer
        Parameters:
        eClass - owner EClass
        Returns:
        command EClass or null
      • isCommandEClass

        public boolean isCommandEClass​(org.eclipse.emf.ecore.EClass eClass)
        Description copied from interface: IBslOwnerComputer
        Checks EClass that is command EClass
        Specified by:
        isCommandEClass in interface IBslOwnerComputer
        Parameters:
        eClass - checking EClass
        Returns:
        true if it's command EClass