Class ExprContentFieldNameContentTranslationProvider

java.lang.Object
com.e1c.langtool.v8.dt.dcs.translator.ExprContentFieldNameContentTranslationProvider
All Implemented Interfaces:
INamedEObjectNameProvider, INamedEObjectNameProviderDelegate

public class ExprContentFieldNameContentTranslationProvider extends Object implements INamedEObjectNameProviderDelegate
The Name and translation provider for Name content of DCS expression language. This provider priority use translation of field path of DCS. If field data path and full content have several segments - it get the translation of appropriate segment.
  • Constructor Details

    • ExprContentFieldNameContentTranslationProvider

      public ExprContentFieldNameContentTranslationProvider()
  • Method Details

    • getTranslatedName

      public Pair<String,String> getTranslatedName(org.eclipse.emf.ecore.EObject object, IProjectTranslationProvider translationProvider)
      Description copied from interface: INamedEObjectNameProvider
      Gets the pair of source and translated name for specified project.
      Specified by:
      getTranslatedName in interface INamedEObjectNameProvider
      Parameters:
      object - the object to get translation of the name
      translationProvider - the translation provider for the target (translated) project
      Returns:
      the pair of source name as key and translated name as value, or returns null if cannot provide
    • getName

      public String getName(org.eclipse.emf.ecore.EObject object)
      Description copied from interface: INamedEObjectNameProvider
      Gets the source name of object that uses in current project.
      Specified by:
      getName in interface INamedEObjectNameProvider
      Parameters:
      object - the object to get the name
      Returns:
      the name of object, can return null if object has no "name" feature provided by delegate
    • getSupportEClass

      public Collection<org.eclipse.emf.ecore.EClass> getSupportEClass()
      Description copied from interface: INamedEObjectNameProviderDelegate
      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.
      Specified by:
      getSupportEClass in interface INamedEObjectNameProviderDelegate
      Returns:
      the collection of support EClass that can provide name, cannot return null.