Class EFeatureSettingsImpl

java.lang.Object
com.e1c.langtool.emf.settings.EFeatureSettingsImpl
All Implemented Interfaces:
EFeatureSettings, FeatureSettings, Serializable
Direct Known Subclasses:
V8FeatureSettings

public class EFeatureSettingsImpl extends Object implements EFeatureSettings
The Class EFeatureSettings. Defines the feature is model or interface (localizable). Model feature can be keyable or not. Feature stores String value for "model" or map of language code and localizable String value of this language for "interface" setting.
See Also:
  • Constructor Details

    • EFeatureSettingsImpl

      public EFeatureSettingsImpl(org.eclipse.emf.ecore.EStructuralFeature feature, boolean isId, boolean isInterface)
      Instantiates a new feature settings.
      Parameters:
      feature - the feature
      isId - the key feature. Only model (non-localizable) feature can be a key.
      isInterface - whether the feature is interface/localizable or model
  • Method Details

    • getName

      public String getName()
      Gets the name of the feature.
      Specified by:
      getName in interface FeatureSettings
      Returns:
      the name
    • getEFeature

      public org.eclipse.emf.ecore.EStructuralFeature getEFeature()
      Gets the feature.
      Specified by:
      getEFeature in interface EFeatureSettings
      Returns:
      the e feature
    • isId

      public boolean isId()
      Checks if the feature is key. Could be checked for unique value in some scope.
      Specified by:
      isId in interface FeatureSettings
      Returns:
      true, if the feature is key
    • isInterface

      public boolean isInterface()
      Checks if the feature is localizable. The feature stores a EMap of LocalString.
      Specified by:
      isInterface in interface EFeatureSettings
      Specified by:
      isInterface in interface FeatureSettings
      Returns:
      true, if is localizable
    • 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
      Returns:
      the presentation
    • toString

      public String toString()
      Overrides:
      toString in class Object