Package com.e1c.langtool.collector
Interface ICollectingParameters
- All Known Implementing Classes:
CollectingParameters
public interface ICollectingParameters
The Interface for collecting parameters. The implementation must be set to
FeatureValueCollector before
the collector start process.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ICollectingParametersThe default light parameters for collecting features from single object. -
Method Summary
Modifier and TypeMethodDescriptionGets the collect model type:any (include computed)strings,model strings that are non computedormodel strings that are computedstrings.Gets the errors which collected ifisContinueAfterFirstError()set totrue.Gets the filter parameters.Gets the languages which collecting from source object.booleanChecks if it is collecting child objects.booleanChecks if it is collectingFeatureValuewith empty values.booleanChecks if it is collecting interface strings.booleanChecks if it is collecting model strings.booleanChecks if it is collecting in sub resources.booleanChecks if collecting should continue after first error.booleanChecks if is keep languages mode.booleanuseCache()Use cachedFeatureValuefor the resource and for all it's child objects.
-
Field Details
-
DEFAULT
The default light parameters for collecting features from single object.
-
-
Method Details
-
isCollectChildObjects
boolean isCollectChildObjects()Checks if it is collecting child objects.- Returns:
trueto collectFeatureValuefrom child objects
-
isCollectModelStrings
boolean isCollectModelStrings()Checks if it is collecting model strings.- Returns:
trueto collect model (none localizable)EFeatureSettingsstrings
-
isCollectInterfaceStrings
boolean isCollectInterfaceStrings()Checks if it is collecting interface strings.- Returns:
trueto collect interface or localizableEFeatureSettingsstrings
-
getCollectModelType
ICollectingParameters.CollectModelType getCollectModelType()Gets the collect model type:any (include computed)strings,model strings that are non computedormodel strings that are computedstrings.- Returns:
- the collect model type
-
isCollectSubResources
boolean isCollectSubResources()Checks if it is collecting in sub resources.- Returns:
trueto collect in sub resources. It depends on concrete project implementation, some child objects could be store in different resources.
-
getLanguages
Set<TranslateLanguage> getLanguages()Gets the languages which collecting from source object.- Returns:
- the set of
TranslateLanguageto collect from source and add toFeatureValue.getLocalStrings()with language code, cannot benull.
-
isCollectEmptyValue
boolean isCollectEmptyValue()Checks if it is collectingFeatureValuewith empty values.- Returns:
true, if it is collecting empty value
-
isContinueAfterFirstError
boolean isContinueAfterFirstError()Checks if collecting should continue after first error.- Returns:
true, if it should continue after first error
-
getErrors
Collection<Exception> getErrors()Gets the errors which collected ifisContinueAfterFirstError()set totrue.- Returns:
- the errors
-
getFilterParameters
Gets the filter parameters.- Returns:
- the filter parameters
-
useCache
boolean useCache()Use cachedFeatureValuefor the resource and for all it's child objects.- Returns:
- true, if need to use cache if available for the resource
-
isKeepLanguagesMode
boolean isKeepLanguagesMode()Checks if is keep languages mode.- Returns:
true, if is keep languages mode
-