Interface ITopObjectFqnGenerator

  • All Known Subinterfaces:
    ITopObjectFqnGeneratorDelegate
    All Known Implementing Classes:
    BaseTopObjectFqnGeneratorDelegate

    public interface ITopObjectFqnGenerator

    Interface for the service responsible for generating FQNs. FQNs are used in DT as natural identifiers for configuration objects, i.e. they are used for querying objects from persistent stores, for representing symbolic links in XML and so on. Below are shown a few examples of top object FQNs.

    • Configuration
    • Configuration.MainSectionCommandInterface
    • Catalog.Customers
    • Catalog.Customers.Form.ItemForm.Form
    • Method Detail

      • generateStandaloneObjectFqn

        String generateStandaloneObjectFqn​(org.eclipse.emf.ecore.EClass eClass,
                                           String name)
        Generates FQN for a standalone object.
        Parameters:
        eClass - the EClass of the object, may not be null.
        name - the name of the object, may not be null.
        Returns:
        FQN or null.
      • generateExternalPropertyFqn

        String generateExternalPropertyFqn​(org.eclipse.emf.ecore.EObject owner,
                                           org.eclipse.emf.ecore.EReference ownerFeature)
        Generates FQN for an external property.
        Parameters:
        owner - the owner of the external property, may not be null.
        ownerFeature - the feature of the owner, may not be null.
        Returns:
        FQN or null.
      • generateNamedExternalPropertyFqn

        String generateNamedExternalPropertyFqn​(org.eclipse.emf.ecore.EObject owner,
                                                org.eclipse.emf.ecore.EReference ownerFeature,
                                                String name)
        Generates FQN for a named external property.
        Parameters:
        owner - the owner of the external property, may not be null.
        ownerFeature - the feature of the owner, may not be null.
        name - the name of the external property, may not be null.
        Returns:
        FQN or null.