Package com.e1c.langtool.collector
Class PersistableFeatureValue
java.lang.Object
com.e1c.langtool.collector.PersistableFeatureValue
- All Implemented Interfaces:
FeatureValue,ContextTranslationKey,TranslationKey,Serializable,Comparable<FeatureValue>
public final class PersistableFeatureValue
extends Object
implements FeatureValue, Comparable<FeatureValue>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPersistableFeatureValue(ContextTranslationKey contextKey) Instantiates a new persistable feature value.PersistableFeatureValue(ContextTranslationKey contextKey, boolean computedValue) Instantiates a new persistable feature value.PersistableFeatureValue(ContextTranslationKey contextKey, boolean computedValue, boolean unknownValue, boolean tagValue) Instantiates a new persistable feature value.PersistableFeatureValue(ContextTranslationKey contextKey, boolean computedValue, String comment) Instantiates a new persistable feature value.PersistableFeatureValue(ContextTranslationKey contextKey, String comment, boolean computedValue, boolean unknownValue, boolean tagValue) Instantiates a new persistable feature value.PersistableFeatureValue(String fullPath, FeatureKey featureKey, FeatureSettings settings, String featureValue, boolean computedValue) Instantiates a new persistable feature value.PersistableFeatureValue(org.eclipse.core.resources.IFile file, FeatureKey featureKey, FeatureSettings settings, String value, boolean computedValue) Instantiates a new persistable feature value.PersistableFeatureValue(org.eclipse.core.resources.IFile file, FeatureKey featureKey, FeatureSettings settings, String value, boolean computedValue, boolean unknownValue, boolean tagValue) Instantiates a new persistable feature value. -
Method Summary
Modifier and TypeMethodDescriptionintbooleanGets the comment for the collected value.Gets the context translation key.Gets the local strings of object feature.inthashCode()booleanChecks if the value is computed from base objects.booleanisTag()Checks if is tag or tag parameter.booleanChecks if the value is unknown.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.e1c.langtool.collector.FeatureValue
getFeatureKey, getFeatureSettings, getFullPath, getResourceId, getSourceProject, getValue
-
Constructor Details
-
PersistableFeatureValue
public PersistableFeatureValue(org.eclipse.core.resources.IFile file, FeatureKey featureKey, FeatureSettings settings, String value, boolean computedValue) Instantiates a new persistable feature value.- Parameters:
file- the file, cannot benullfeatureKey- the feature key, cannot benullsettings- the settings, cannot benullvalue- the value, cannot benullcomputedValue- the computed value
-
PersistableFeatureValue
public PersistableFeatureValue(org.eclipse.core.resources.IFile file, FeatureKey featureKey, FeatureSettings settings, String value, boolean computedValue, boolean unknownValue, boolean tagValue) Instantiates a new persistable feature value.- Parameters:
file- the file, cannot benullfeatureKey- the feature key, cannot benullsettings- the settings, cannot benullvalue- the value, cannot benullcomputedValue- the computed valueunknownValue- the is unknowntagValue- the is tag or tag parameter
-
PersistableFeatureValue
public PersistableFeatureValue(String fullPath, FeatureKey featureKey, FeatureSettings settings, String featureValue, boolean computedValue) Instantiates a new persistable feature value.- Parameters:
fullPath- the full path, cannot benullfeatureKey- the feature key, cannot benullsettings- the settings, cannot benullfeatureValue- the feature valuecomputedValue- the computed value
-
PersistableFeatureValue
Instantiates a new persistable feature value.- Parameters:
contextKey- the context key, cannot benull
-
PersistableFeatureValue
Instantiates a new persistable feature value.- Parameters:
contextKey- the context key, cannot benullcomputedValue- the computed value
-
PersistableFeatureValue
public PersistableFeatureValue(ContextTranslationKey contextKey, boolean computedValue, boolean unknownValue, boolean tagValue) Instantiates a new persistable feature value.- Parameters:
contextKey- the context key, cannot benullcomputedValue- the computed valueunknownValue- the is unknowntagValue- the is tag or tag parameter
-
PersistableFeatureValue
public PersistableFeatureValue(ContextTranslationKey contextKey, boolean computedValue, String comment) Instantiates a new persistable feature value.- Parameters:
contextKey- the context key, cannot benullcomputedValue- the computed valuecomment- the comment, can benull
-
PersistableFeatureValue
public PersistableFeatureValue(ContextTranslationKey contextKey, String comment, boolean computedValue, boolean unknownValue, boolean tagValue) Instantiates a new persistable feature value.- Parameters:
contextKey- the context key, cannot benullcomment- the comment, can benullcomputedValue- the computed valueunknownValue- the is unknowntagValue- the is tag or tag parameter
-
-
Method Details
-
getContextKey
Description copied from interface:FeatureValueGets the context translation key.- Specified by:
getContextKeyin interfaceFeatureValue- Returns:
- the context key, cannot return
null.
-
isComputedValue
public boolean isComputedValue()Description copied from interface:FeatureValueChecks if the value is computed from base objects.- Specified by:
isComputedValuein interfaceFeatureValue- Returns:
- the computedValue, cannot be
null.
-
isUnknown
public boolean isUnknown()Description copied from interface:FeatureValueChecks if the value is unknown.- Specified by:
isUnknownin interfaceFeatureValue- Returns:
trueif unknown value.
-
isTag
public boolean isTag()Description copied from interface:FeatureValueChecks if is tag or tag parameter.- Specified by:
isTagin interfaceFeatureValue- Returns:
true, if is tag or tag parameter.
-
getLocalStrings
Description copied from interface:FeatureValueGets the local strings of object feature.- Specified by:
getLocalStringsin interfaceFeatureValue- 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
Description copied from interface:FeatureValueGets the comment for the collected value.- Specified by:
getCommentin interfaceFeatureValue- Returns:
- the comment
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<FeatureValue>
-
toString
-