Class RestrictionTranslationSource

java.lang.Object
com.e1c.langtool.v8.dt.internal.right.ql.RestrictionTranslationSource
All Implemented Interfaces:
TranslationSource

public class RestrictionTranslationSource extends Object implements TranslationSource
Spesial translation source object allows to link parent eObject and restriction query object.
See Also:
  • Constructor Details

    • RestrictionTranslationSource

      public RestrictionTranslationSource()
  • Method Details

    • getProject

      public org.eclipse.core.resources.IProject getProject()
      Description copied from interface: TranslationSource
      Gets the project of translation source object.
      Specified by:
      getProject in interface TranslationSource
      Returns:
      the project
    • getProjectRelativePath

      public @Nullable org.eclipse.core.runtime.IPath getProjectRelativePath()
      Description copied from interface: TranslationSource
      Gets the project relative path of the source.
      Specified by:
      getProjectRelativePath in interface TranslationSource
      Returns:
      the project relative path
    • getSourceObject

      public Object getSourceObject()
      Description copied from interface: TranslationSource
      Gets the source object with can scan for strings.
      Specified by:
      getSourceObject in interface TranslationSource
      Returns:
      the source object
    • getId

      public String getId()
      Description copied from interface: TranslationSource
      Gets the id of this translation source. It must be unique in project scope and free of project name in preffix that is mean id is project related.
      Specified by:
      getId in interface TranslationSource
      Returns:
      the id
    • getRestriction

      public Restriction getRestriction()
      Returns:
      the Restriction
    • setRestriction

      public void setRestriction(Restriction restriction)
      Parameters:
      restriction - the Restriction to set