Package com.e1c.langtool.collector
Class CollectingParameters
java.lang.Object
com.e1c.langtool.collector.CollectingParameters
- All Implemented Interfaces:
ICollectingParameters
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.e1c.langtool.collector.ICollectingParameters
ICollectingParameters.CollectModelType -
Field Summary
Fields inherited from interface com.e1c.langtool.collector.ICollectingParameters
DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionCollectingParameters(boolean collectChildObjects, boolean collectModel, boolean collectInterface, boolean collectSubResources, ICollectingParameters.CollectModelType collectModelType, boolean collectEmptyValue, Set<TranslateLanguage> languages, boolean continueAfterFirstError, boolean useCache, boolean keepLanguagesMode) Instantiates a new collecting parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic CollectingParameters.Builderbuilder()Gets the collect model type:any (include computed)strings,model strings that are non computedormodel strings that are computedstrings.Gets the errors which collected ifICollectingParameters.isContinueAfterFirstError()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.
-
Constructor Details
-
CollectingParameters
public CollectingParameters(boolean collectChildObjects, boolean collectModel, boolean collectInterface, boolean collectSubResources, ICollectingParameters.CollectModelType collectModelType, boolean collectEmptyValue, Set<TranslateLanguage> languages, boolean continueAfterFirstError, boolean useCache, boolean keepLanguagesMode) Instantiates a new collecting parameters.- Parameters:
collectChildObjects- the collect child objectscollectModel- the collect modelcollectInterface- the collect interfacecollectSubResources- the collect sub resourcescollectModelType- the collect model typecollectEmptyValue- the collect empty valuelanguages- collect source source strings for languages, ifnullor empty doesn't collect.continueAfterFirstError- the continue after first erroruseCache- the use cachekeepLanguagesMode- the is keep languages mode
-
-
Method Details
-
builder
-
isCollectChildObjects
public boolean isCollectChildObjects()Description copied from interface:ICollectingParametersChecks if it is collecting child objects.- Specified by:
isCollectChildObjectsin interfaceICollectingParameters- Returns:
trueto collectFeatureValuefrom child objects
-
isCollectModelStrings
public boolean isCollectModelStrings()Description copied from interface:ICollectingParametersChecks if it is collecting model strings.- Specified by:
isCollectModelStringsin interfaceICollectingParameters- Returns:
trueto collect model (none localizable)EFeatureSettingsstrings
-
isCollectInterfaceStrings
public boolean isCollectInterfaceStrings()Description copied from interface:ICollectingParametersChecks if it is collecting interface strings.- Specified by:
isCollectInterfaceStringsin interfaceICollectingParameters- Returns:
trueto collect interface or localizableEFeatureSettingsstrings
-
getCollectModelType
Description copied from interface:ICollectingParametersGets the collect model type:any (include computed)strings,model strings that are non computedormodel strings that are computedstrings.- Specified by:
getCollectModelTypein interfaceICollectingParameters- Returns:
- the collect model type
-
isCollectSubResources
public boolean isCollectSubResources()Description copied from interface:ICollectingParametersChecks if it is collecting in sub resources.- Specified by:
isCollectSubResourcesin interfaceICollectingParameters- Returns:
trueto collect in sub resources. It depends on concrete project implementation, some child objects could be store in different resources.
-
getLanguages
Description copied from interface:ICollectingParametersGets the languages which collecting from source object.- Specified by:
getLanguagesin interfaceICollectingParameters- Returns:
- the set of
TranslateLanguageto collect from source and add toFeatureValue.getLocalStrings()with language code, cannot benull.
-
isCollectEmptyValue
public boolean isCollectEmptyValue()Description copied from interface:ICollectingParametersChecks if it is collectingFeatureValuewith empty values.- Specified by:
isCollectEmptyValuein interfaceICollectingParameters- Returns:
true, if it is collecting empty value
-
isContinueAfterFirstError
public boolean isContinueAfterFirstError()Description copied from interface:ICollectingParametersChecks if collecting should continue after first error.- Specified by:
isContinueAfterFirstErrorin interfaceICollectingParameters- Returns:
true, if it should continue after first error
-
getErrors
Description copied from interface:ICollectingParametersGets the errors which collected ifICollectingParameters.isContinueAfterFirstError()set totrue.- Specified by:
getErrorsin interfaceICollectingParameters- Returns:
- the errors
-
getFilterParameters
Description copied from interface:ICollectingParametersGets the filter parameters.- Specified by:
getFilterParametersin interfaceICollectingParameters- Returns:
- the filter parameters
-
isKeepLanguagesMode
public boolean isKeepLanguagesMode()Description copied from interface:ICollectingParametersChecks if is keep languages mode.- Specified by:
isKeepLanguagesModein interfaceICollectingParameters- Returns:
true, if is keep languages mode
-
useCache
public boolean useCache()Description copied from interface:ICollectingParametersUse cachedFeatureValuefor the resource and for all it's child objects.- Specified by:
useCachein interfaceICollectingParameters- Returns:
- true, if need to use cache if available for the resource
-