Package com.e1c.langtool.v8.dt.settings
Class V8FeatureSettings.Builder
java.lang.Object
com.e1c.langtool.v8.dt.settings.V8FeatureSettings.Builder
- Enclosing class:
- V8FeatureSettings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theV8FeatureSettingsobject.Sets the feature is camel case.setCamelCaseByContent(EFeatureSettings camelCaseByContent) Sets the camel case by content feature settings.setFeature(org.eclipse.emf.ecore.EStructuralFeature feature) Sets the feature.Sets the feature is format.setId()Sets the feature is id and unique.Sets the feature is interface.setModel()Sets the feature is model.setModelValueProvider(BiFunction<org.eclipse.emf.ecore.EObject, EFeatureSettings, String> valueProvider) Sets the model value provider.Sets the feature is multi line or single-line.Sets the feature is prefer to store in context storage.Sets the feature is unique.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Builds theV8FeatureSettingsobject.- Returns:
- the v8 feature settings
-
setFeature
Sets the feature.- Parameters:
feature- the feature- Returns:
- the builder
-
setId
Sets the feature is id and unique.- Returns:
- the builder
-
setInterface
Sets the feature is interface.- Returns:
- the builder
-
setModel
Sets the feature is model.- Returns:
- the builder
-
setUnique
Sets the feature is unique.- Returns:
- the builder
-
setCamelCase
Sets the feature is camel case.- Returns:
- the builder
-
setMultiLine
Sets the feature is multi line or single-line.- Returns:
- the builder
-
setPreferContext
Sets the feature is prefer to store in context storage.- Returns:
- the builder
-
setFormat
Sets the feature is format.- Returns:
- the builder
-
setCamelCaseByContent
Sets the camel case by content feature settings.- Parameters:
camelCaseByContent- the camel case by content, can benull.- Returns:
- the builder
-
setModelValueProvider
public V8FeatureSettings.Builder setModelValueProvider(BiFunction<org.eclipse.emf.ecore.EObject, EFeatureSettings, String> valueProvider) Sets the model value provider.- Parameters:
valueProvider- the value provider- Returns:
- the builder
-