Class ContextTranslationKeyImpl

java.lang.Object
com.e1c.langtool.ContextTranslationKeyImpl
All Implemented Interfaces:
ContextTranslationKey, TranslationKey, Serializable

public final class ContextTranslationKeyImpl extends Object implements ContextTranslationKey
Default implementation of ContextTranslationKey. Instance is immutable and my be serialized.
See Also:
  • Constructor Details

    • ContextTranslationKeyImpl

      public ContextTranslationKeyImpl(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath resourceId, FeatureKey featureKey, FeatureSettings featureSettings, String value)
      Instantiates a new context translation key.
      Parameters:
      project - the project of the source, cannot be null.
      resourceId - the project relative resource id path, cannot be null.
      featureKey - the feature key in the resource, cannot be null.
      featureSettings - the feature settings, cannot be null.
      value - the value source feature, cannot be null.
    • ContextTranslationKeyImpl

      public ContextTranslationKeyImpl(org.eclipse.core.resources.IFile file, FeatureKey featureKey, FeatureSettings featureSettings, String value)
      Instantiates a new context translation key.
      Parameters:
      file - the file of source resource, cannot be null.
      featureKey - the feature key in the resource, cannot be null.
      featureSettings - the feature settings, cannot be null.
      value - the value source feature, cannot be null.
    • ContextTranslationKeyImpl

      public ContextTranslationKeyImpl(String fullPath, FeatureKey featureKey, FeatureSettings featureSettings, String value)
      Instantiates a new context translation key.
      Parameters:
      fullPath - the full path of the resource including project, cannot be null.
      featureKey - the feature key in the resource, cannot be null.
      featureSettings - the feature settings, cannot be null.
      value - the value source feature, cannot be null.
  • Method Details