Package com.e1c.langtool.settings
Class CommonFeatureSettings
java.lang.Object
com.e1c.langtool.settings.CommonFeatureSettings
- All Implemented Interfaces:
FeatureSettings,Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCommonFeatureSettings(String name, boolean isId, boolean isInterface, String presentation, boolean isCamelCase, boolean isMultiLine, boolean isPreferContext, boolean isTag) CommonFeatureSettings(String name, boolean isId, boolean isInterface, String presentation, boolean isUnique, boolean isCamelCase, boolean isMultiLine, boolean isPreferContext, boolean isTag) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Gets the name of the feature.Gets the presentation of feature.inthashCode()booleanChecks if the feature is camel case.booleanisId()Checks if the feature is ID.booleanChecks if the feature is interface or localizable.booleanChecks if the feature is multi-line.booleanChecks if the feature is prefer context storing.booleanisTag()Checks if the feature is tag or tag parambooleanisUnique()Checks if the feature must be unique in some scope.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.e1c.langtool.settings.FeatureSettings
isModel
-
Constructor Details
-
CommonFeatureSettings
-
CommonFeatureSettings
-
-
Method Details
-
getName
Description copied from interface:FeatureSettingsGets the name of the feature.- Specified by:
getNamein interfaceFeatureSettings- Returns:
- the name
-
isId
public boolean isId()Description copied from interface:FeatureSettingsChecks if the feature is ID. Could be checked for unique value in some scope.- Specified by:
isIdin interfaceFeatureSettings- Returns:
true, if the feature is ID
-
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
-
isInterface
public boolean isInterface()Description copied from interface:FeatureSettingsChecks if the feature is interface or localizable. TheFeatureValuecan provide aMapofLocalString.- Specified by:
isInterfacein interfaceFeatureSettings- Returns:
true, if the feature is interface
-
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
-
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.
-
isTag
public boolean isTag()Description copied from interface:FeatureSettingsChecks if the feature is tag or tag param- Specified by:
isTagin interfaceFeatureSettings- Returns:
true, if the feature is tag or tag param
-
hashCode
public int hashCode() -
equals
-