Package com.e1c.langtool.v8.dt.settings
Class V8FeatureSettings
java.lang.Object
com.e1c.langtool.emf.settings.EFeatureSettingsImpl
com.e1c.langtool.v8.dt.settings.V8FeatureSettings
- All Implemented Interfaces:
EFeatureSettings,FeatureSettings,DtFeatureSettings,Serializable
- Direct Known Subclasses:
V8FeatureSettings.V8ModelFeatureSettings
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedV8FeatureSettings(org.eclipse.emf.ecore.EStructuralFeature feature, boolean isId, boolean isInterface, boolean isUnique, boolean isCamelCase, boolean isMultiLine, boolean isPreferContext, boolean isFormat, EFeatureSettings camelCaseByContent) Instantiates a new V8 feature settings. -
Method Summary
Modifier and TypeMethodDescriptionGets the camel case by content feature settings.Gets the presentation of feature.booleanChecks if the feature is camel case.booleanisFormat()Checks if the feature is a format.booleanChecks if the feature is multi-line.booleanChecks if the feature is prefer context storing.booleanisUnique()Checks if the feature must be unique in some scope.Methods inherited from class com.e1c.langtool.emf.settings.EFeatureSettingsImpl
getEFeature, getName, isId, isInterface, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.e1c.langtool.settings.FeatureSettings
getName, isId, isModel, isTag
-
Constructor Details
-
V8FeatureSettings
protected V8FeatureSettings(org.eclipse.emf.ecore.EStructuralFeature feature, boolean isId, boolean isInterface, boolean isUnique, boolean isCamelCase, boolean isMultiLine, boolean isPreferContext, boolean isFormat, EFeatureSettings camelCaseByContent) Instantiates a new V8 feature settings.- Parameters:
feature- the featureisId- the is idisInterface- the is interfaceisUnique- the is uniqueisCamelCase- the is camel caseisMultiLine- the is multi line
-
-
Method Details
-
isUnique
public boolean isUnique()Description copied from interface:FeatureSettingsChecks if the feature must be unique in some scope.- Specified by:
isUniquein interfaceFeatureSettings- Returns:
true, if the feature is unique
-
getPresentation
Description copied from interface:FeatureSettingsGets the presentation of feature. This value can be visible in UI and implementors must provide localized string if this possible.- Specified by:
getPresentationin interfaceFeatureSettings- Overrides:
getPresentationin classEFeatureSettingsImpl- Returns:
- the presentation
-
isCamelCase
public boolean isCamelCase()Description copied from interface:FeatureSettingsChecks if the feature is camel case.- Specified by:
isCamelCasein interfaceFeatureSettings- Returns:
true, if the feature is camel case
-
isMultiLine
public boolean isMultiLine()Description copied from interface:FeatureSettingsChecks if the feature is multi-line.- Specified by:
isMultiLinein interfaceFeatureSettings- Returns:
true, if the feature is multi-line
-
isPreferContext
public boolean isPreferContext()Description copied from interface:FeatureSettingsChecks if the feature is prefer context storing.- Specified by:
isPreferContextin interfaceFeatureSettings- Returns:
true, if the feature is prefer context storing.
-
isFormat
public boolean isFormat()Description copied from interface:DtFeatureSettingsChecks if the feature is a format.- Specified by:
isFormatin interfaceDtFeatureSettings- Returns:
- true, if the feature is format
-
getCamelCaseByContent
Description copied from interface:DtFeatureSettingsGets the camel case by content feature settings. If the content of the feature is valid CamelCase so the feature should be replaced with this settings.- Specified by:
getCamelCaseByContentin interfaceDtFeatureSettings- Returns:
- the camel case by content feature settings, may return
nullif the feature not support replacement of settings.
-