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
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().
-
Method Summary
Modifier and TypeMethodDescription@NonNull Collection<org.eclipse.emf.ecore.EClass>Gets the supportEClassthat can provide name.default intorder()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 returningEClasswhen specificEObjectprovided 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 supportEClassthat can provide name. TheEObjectwill be checked that it'sEClassis implementation of one of collection of classes returned by delegate.- Returns:
- the collection of support
EClassthat can provide name, cannot returnnull.
-
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
Order of this delegate goes before delegates supported returningEClasswhen specificEObjectprovided to service to get names. EachEClassmust 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:
-