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

public class V8FeatureSettings extends EFeatureSettingsImpl implements DtFeatureSettings
See Also:
  • 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 feature
      isId - the is id
      isInterface - the is interface
      isUnique - the is unique
      isCamelCase - the is camel case
      isMultiLine - the is multi line
  • Method Details

    • isUnique

      public boolean isUnique()
      Description copied from interface: FeatureSettings
      Checks if the feature must be unique in some scope.
      Specified by:
      isUnique in interface FeatureSettings
      Returns:
      true, if the feature is unique
    • getPresentation

      public String getPresentation()
      Description copied from interface: FeatureSettings
      Gets the presentation of feature. This value can be visible in UI and implementors must provide localized string if this possible.
      Specified by:
      getPresentation in interface FeatureSettings
      Overrides:
      getPresentation in class EFeatureSettingsImpl
      Returns:
      the presentation
    • isCamelCase

      public boolean isCamelCase()
      Description copied from interface: FeatureSettings
      Checks if the feature is camel case.
      Specified by:
      isCamelCase in interface FeatureSettings
      Returns:
      true, if the feature is camel case
    • isMultiLine

      public boolean isMultiLine()
      Description copied from interface: FeatureSettings
      Checks if the feature is multi-line.
      Specified by:
      isMultiLine in interface FeatureSettings
      Returns:
      true, if the feature is multi-line
    • isPreferContext

      public boolean isPreferContext()
      Description copied from interface: FeatureSettings
      Checks if the feature is prefer context storing.
      Specified by:
      isPreferContext in interface FeatureSettings
      Returns:
      true, if the feature is prefer context storing.
    • isFormat

      public boolean isFormat()
      Description copied from interface: DtFeatureSettings
      Checks if the feature is a format.
      Specified by:
      isFormat in interface DtFeatureSettings
      Returns:
      true, if the feature is format
    • getCamelCaseByContent

      public FeatureSettings getCamelCaseByContent()
      Description copied from interface: DtFeatureSettings
      Gets 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:
      getCamelCaseByContent in interface DtFeatureSettings
      Returns:
      the camel case by content feature settings, may return null if the feature not support replacement of settings.