Package com.e1c.langtool.collector
Interface FeatureValue
- All Superinterfaces:
ContextTranslationKey,Serializable,TranslationKey
- All Known Subinterfaces:
EFeatureValue,FileFeatureValue
- All Known Implementing Classes:
EmfFeatureValue,PersistableFeatureValue,V8FeatureValue
The Interface is common for object contains feature string value, feature FQN key, object's resource ID,
feature settings and value is computed.
Implementers must care themselves to their concurrency usage or be a thread-safe.
Implementers are advisable to be immutable.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringGets the comment for the collected value.Gets the context translation key.default FeatureKeyDeprecated.default FeatureSettingsDeprecated.default StringDeprecated.Gets the local strings of object feature.default org.eclipse.core.runtime.IPathDeprecated.default org.eclipse.core.resources.IProjectDeprecated.default StringgetValue()Deprecated.booleanChecks if the value is computed from base objects.booleanisTag()Checks if is tag or tag parameter.booleanChecks if the value is unknown.
-
Method Details
-
getContextKey
ContextTranslationKey getContextKey()Gets the context translation key.- Returns:
- the context key, cannot return
null.
-
isComputedValue
boolean isComputedValue()Checks if the value is computed from base objects.- Returns:
- the computedValue, cannot be
null.
-
isUnknown
boolean isUnknown()Checks if the value is unknown.- Returns:
trueif unknown value.
-
isTag
boolean isTag()Checks if is tag or tag parameter.- Returns:
true, if is tag or tag parameter.
-
getLocalStrings
Gets the local strings of object feature.- Returns:
- the Map of local strings. The key of entry is "Language code" and the value of entry
is the "local string" in this language. Cannot be
null.
-
getComment
Gets the comment for the collected value.- Returns:
- the comment
-
getFullPath
Deprecated.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.
-
getFeatureSettings
Deprecated.Description copied from interface:TranslationKeyGets the feature settings.- Specified by:
getFeatureSettingsin interfaceTranslationKey- Returns:
- the feature settings, cannot be
null.
-
getValue
Deprecated.Description copied from interface:TranslationKeyGets the value of object feature.- Specified by:
getValuein interfaceTranslationKey- Returns:
- the value, cannot be
null.
-
getSourceProject
Deprecated.Description copied from interface:ContextTranslationKeyGets the project of the source object.- Specified by:
getSourceProjectin interfaceContextTranslationKey- Returns:
- the source project, cannot return
null.
-
getResourceId
Deprecated.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
Deprecated.Description copied from interface:ContextTranslationKeyGets the feature key in resource.- Specified by:
getFeatureKeyin interfaceContextTranslationKey- Returns:
- the featureKey, cannot return
null.
-