Package com.e1c.langtool
Class ContextTranslationKeyImpl
java.lang.Object
com.e1c.langtool.ContextTranslationKeyImpl
- All Implemented Interfaces:
ContextTranslationKey,TranslationKey,Serializable
Default implementation of
ContextTranslationKey.
Instance is immutable and my be serialized.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionContextTranslationKeyImpl(String fullPath, FeatureKey featureKey, FeatureSettings featureSettings, String value) Instantiates a new context translation key.ContextTranslationKeyImpl(org.eclipse.core.resources.IFile file, FeatureKey featureKey, FeatureSettings featureSettings, String value) Instantiates a new context translation key.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. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the feature key in resource.Gets the feature settings.Gets the full path of the resource including project name.org.eclipse.core.runtime.IPathGets the id of resource of translatable feature.org.eclipse.core.resources.IProjectGets the project of the source object.getValue()Gets the value of object feature.inthashCode()toString()
-
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 benull.resourceId- the project relative resource id path, cannot benull.featureKey- the feature key in the resource, cannot benull.featureSettings- the feature settings, cannot benull.value- the value source feature, cannot benull.
-
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 benull.featureKey- the feature key in the resource, cannot benull.featureSettings- the feature settings, cannot benull.value- the value source feature, cannot benull.
-
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 benull.featureKey- the feature key in the resource, cannot benull.featureSettings- the feature settings, cannot benull.value- the value source feature, cannot benull.
-
-
Method Details
-
getFeatureSettings
Description copied from interface:TranslationKeyGets the feature settings.- Specified by:
getFeatureSettingsin interfaceTranslationKey- Returns:
- the feature settings, cannot be
null.
-
getValue
Description copied from interface:TranslationKeyGets the value of object feature.- Specified by:
getValuein interfaceTranslationKey- Returns:
- the value, cannot be
null.
-
getSourceProject
public org.eclipse.core.resources.IProject getSourceProject()Description copied from interface:ContextTranslationKeyGets the project of the source object.- Specified by:
getSourceProjectin interfaceContextTranslationKey- Returns:
- the source project, cannot return
null.
-
getResourceId
public org.eclipse.core.runtime.IPath getResourceId()Description copied from interface:ContextTranslationKeyGets the id of resource of translatable feature. It must be unique in project scope and free of project name in prefix that is mean id is project related.- Specified by:
getResourceIdin interfaceContextTranslationKey- Returns:
- the resource id, cannot return
null.
-
getFeatureKey
Description copied from interface:ContextTranslationKeyGets the feature key in resource.- Specified by:
getFeatureKeyin interfaceContextTranslationKey- Returns:
- the featureKey, cannot return
null.
-
getFullPath
Description copied from interface:ContextTranslationKeyGets the full path of the resource including project name.- Specified by:
getFullPathin interfaceContextTranslationKey- Returns:
- the full path of resource, cannot return
null.
-
hashCode
public int hashCode() -
equals
-
toString
-