Interface INamedEObjectNameProviderDelegate

All Superinterfaces:
INamedEObjectNameProvider
All Known Implementing Classes:
BslContextDefMethodOrPropertyNamedProvider, DataPathLastSegmentNameProvider, DbViewElementNameProvider, DbViewFieldFieldDefNameProvider, DuallyNamedElementNameProvider, EmptyRefNameProvider, ExprContentFieldNameContentTranslationProvider, LabelNameProvider, MdObjectNameProvider, MethodNameProvider, NamedElementNameProvider, ParameterNameProvider, PredefinedItemNameProvider, RestrictionTemplateNamedProvider, TemplateCallNameProvider, VariableNameProvider, XdtoPropertyNameProvider

public interface INamedEObjectNameProviderDelegate extends INamedEObjectNameProvider
Delegating provider of name and translated name for EObject from special package. Must be contributed to extention point com.e1c.langtool.v8.dt.translator.namedEObjectNameProvider.

WARNING!! If somehow several delegates can provide name for the object - they will order by fowllowing rules: at first check class order by before orderBeforeEClass(), then if delegates are on same order then intager order() will be compared, otherwise will compare by #hashCode().

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull Collection<org.eclipse.emf.ecore.EClass>
    Gets the support EClass that can provide name.
    default int
    Order of applying this delegate if it can provide name with other delegates for the object.
    default @NonNull Collection<org.eclipse.emf.ecore.EClass>
    Order of this delegate goes before delegates supported returning EClass when specific EObject provided to service to get names.

    Methods inherited from interface com.e1c.langtool.v8.dt.translator.INamedEObjectNameProvider

    getName, getTranslatedName
  • Method Details

    • getSupportEClass

      @NonNull Collection<org.eclipse.emf.ecore.EClass> getSupportEClass()
      Gets the support EClass that can provide name. The EObject will be checked that it's EClass is implementation of one of collection of classes returned by delegate.
      Returns:
      the collection of support EClass that can provide name, cannot return null.
    • order

      default int order()
      Order of applying this delegate if it can provide name with other delegates for the object. If delegates has equal order then order of #hashCode() will apply. Default value is 100.
      Returns:
      the order
      See Also:
    • orderBeforeEClass

      default @NonNull Collection<org.eclipse.emf.ecore.EClass> orderBeforeEClass()
      Order of this delegate goes before delegates supported returning EClass when specific EObject provided to service to get names. Each EClass must be super type of supported class of this delegate and cannot be equal to supported class.
      Returns:
      the collection of classes that this delegate goes before other delegates supported them.
      See Also: