Interface IGenerationBasedOnManagementService

All Known Implementing Classes:
GenerationBasedOnManagementService

public interface IGenerationBasedOnManagementService
General logic of based on generation functionality management
  • Method Details

    • getBasedOn

      Collection<MdObject> getBasedOn(MdObject source)
      Gets current content of based-on collection from a provided source
      Parameters:
      source - A supported source having based-on logic. Cannot be null
      Returns:
      Collection of MdObject which are the base for a provided source. Cannot be null. Can be empty
    • getBasedOnTargets

      Collection<MdObject> getBasedOnTargets(MdObject source)
      Gets all MdObject's that are applicable as based-on targets for a given object. The result is being filtered of objects that are already used as basis for a given object.
      Parameters:
      source - The source MdObject. Cannot be null
      Returns:
      Collection of applicable objects. Never null
    • getFirstMatchingBasis

      MdObject getFirstMatchingBasis(String name, MdObject source)
      Gets first name-matching MdObject from the based-on collection of a provided source
      Parameters:
      name - Name to match. Cannot be null
      source - Source object to get basis from. Cannot be null
      Returns:
      Matching basis object. Can be null
    • getObjectModule

      Module getObjectModule(MdObject source)
      Gets object module from a provided source MdObject
      Parameters:
      source - Source MdObject. Cannot be null
      Returns:
      Object module, if exist. null otherwise
    • getObjectModuleUri

      org.eclipse.emf.common.util.URI getObjectModuleUri(MdObject source)
      Gets object module URI from a provided source MdObject
      Parameters:
      source - Source MdObject. Cannot be null
      Returns:
      Object module URI, if exist. null otherwise