Package com.e1c.langtool.history.db
Class ProjectTranslation
java.lang.Object
com.e1c.langtool.history.db.ProjectTranslation
- All Implemented Interfaces:
IProjectTranslation
Immutable and thread-safe implementation of
IProjectTranslation.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe builder to createProjectTranslationinstances. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the type of translating feature.Returns the feature key.Returns the feature name.Returns the code of language for which the source value was translated.Returns the name of project that contains translating feature.Returns the unique identifier of resource that contains the source value of this translation.Returns the unique identifier of the storage that contains this translation.Returns the translation of the source feature value.getValue()Returns the value to translate.inthashCode()toString()
-
Method Details
-
getLanguage
Description copied from interface:IProjectTranslationReturns the code of language for which the source value was translated.Note that
IProjectTranslationinterface doesn't provides to get the code of source language because of every translating project can have only one default language (seeITranslateProject.getDefaultLanguage()).- Specified by:
getLanguagein interfaceIProjectTranslation- Returns:
- the code of language to translate
-
getStorageId
Description copied from interface:IProjectTranslationReturns the unique identifier of the storage that contains this translation.It's assumed that this method should returns the same value as
StorageID.toString().- Specified by:
getStorageIdin interfaceIProjectTranslation- Returns:
- the unique identifier of the storage that contains this translation
-
getResourceId
Description copied from interface:IProjectTranslationReturns the unique identifier of resource that contains the source value of this translation.- Specified by:
getResourceIdin interfaceIProjectTranslation- Returns:
- the identifier of resource that contains the source value
- See Also:
-
getFeatureKey
Description copied from interface:IProjectTranslationReturns the feature key.- Specified by:
getFeatureKeyin interfaceIProjectTranslation- Returns:
- the feature key
- See Also:
-
getFeatureName
Description copied from interface:IProjectTranslationReturns the feature name.- Specified by:
getFeatureNamein interfaceIProjectTranslation- Returns:
- the feature name.
- See Also:
-
FeatureValue.getFeatureSettings()FeatureSettings#getFeatureName()
-
getValue
Description copied from interface:IProjectTranslationReturns the value to translate.- Specified by:
getValuein interfaceIProjectTranslation- Returns:
- returns the value to translate
- See Also:
-
getContext
Description copied from interface:IProjectTranslationReturns the type of translating feature.- Specified by:
getContextin interfaceIProjectTranslation- Returns:
- the type of translating feature
-
getProjectName
Description copied from interface:IProjectTranslationReturns the name of project that contains translating feature.- Specified by:
getProjectNamein interfaceIProjectTranslation- Returns:
- the name of project that contains translating feature
- See Also:
-
IResource.getName()
-
getTranslation
Description copied from interface:IProjectTranslationReturns the translation of the source feature value.- Specified by:
getTranslationin interfaceIProjectTranslation- Returns:
- the translation of the source feature value
-
hashCode
public int hashCode() -
equals
-
toString
-