Package com.e1c.langtool.emf.settings
Class EFeatureSettingsImpl
java.lang.Object
com.e1c.langtool.emf.settings.EFeatureSettingsImpl
- All Implemented Interfaces:
EFeatureSettings,FeatureSettings,Serializable
- Direct Known Subclasses:
V8FeatureSettings
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 Summary
ConstructorsConstructorDescriptionEFeatureSettingsImpl(org.eclipse.emf.ecore.EStructuralFeature feature, boolean isId, boolean isInterface) Instantiates a new feature settings. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.e1c.langtool.settings.FeatureSettings
isCamelCase, isModel, isMultiLine, isPreferContext, isTag, isUnique
-
Constructor Details
-
EFeatureSettingsImpl
public EFeatureSettingsImpl(org.eclipse.emf.ecore.EStructuralFeature feature, boolean isId, boolean isInterface) Instantiates a new feature settings.- Parameters:
feature- the featureisId- the key feature. Only model (non-localizable) feature can be a key.isInterface- whether the feature is interface/localizable or model
-
-
Method Details
-
getName
Gets the name of the feature.- Specified by:
getNamein interfaceFeatureSettings- Returns:
- the name
-
getEFeature
public org.eclipse.emf.ecore.EStructuralFeature getEFeature()Gets the feature.- Specified by:
getEFeaturein interfaceEFeatureSettings- 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:
isIdin interfaceFeatureSettings- Returns:
- true, if the feature is key
-
isInterface
public boolean isInterface()Checks if the feature is localizable. The feature stores aEMapofLocalString.- Specified by:
isInterfacein interfaceEFeatureSettings- Specified by:
isInterfacein interfaceFeatureSettings- Returns:
- true, if is localizable
-
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- Returns:
- the presentation
-
toString
-