Class BmConfigurationCompatibilityModeModel
- java.lang.Object
-
- com._1c.g5.aef2.validators.Validable
-
- com._1c.g5.aef2.models.Model
-
- com._1c.g5.aef2.models.EditableModel
-
- com._1c.g5.aef2.models.value.Value<T>
-
- com._1c.g5.v8.dt.aef2.bm.models.BmValue<CompatibilityMode>
-
- com._1c.g5.v8.dt.md.ui.aef.models.BmConfigurationCompatibilityModeModel
-
- All Implemented Interfaces:
IAttribute<IBmObject,org.eclipse.emf.ecore.EStructuralFeature>
,IEditableModel
,IEmfAttribute<IBmObject>
,IModel
,IEmfValueAttribute<CompatibilityMode,IBmObject>
,IValue<CompatibilityMode>
,IValidable
,IModelApiAwareModel
public class BmConfigurationCompatibilityModeModel extends BmValue<CompatibilityMode>
Configuration compatibility mode model.
-
-
Constructor Summary
Constructors Constructor Description BmConfigurationCompatibilityModeModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IRuntimeVersionSupport runtimeVersionSupport)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompatibilityMode
getMaxCompatibilityMode()
Returns the maximum possible value of compatibility mode for the project (which corresponds to its runtime version number).Version
getRuntimeVersion()
Returns the runtime version of the project of this modelCollection<CompatibilityMode>
getValues()
Returns the list of possible compatibility mode values, i.-
Methods inherited from class com._1c.g5.v8.dt.aef2.bm.models.BmValue
adapt, createTask, dispose, getChange, getModelApi, getObject, getObjectValue, getProperty, processBmValueChange, setModelApi, setObjectValue
-
Methods inherited from class com._1c.g5.aef2.models.value.Value
addValueListener, createWorkingCopy, discard, get, getCommittedValue, getUncommittedValue, getValidatorTarget, isEqual, notifyValueChanged, queueNotifyValueChanged, removeValueListener, set, setCommittedValue, setUncommittedValue, setValue, toString
-
Methods inherited from class com._1c.g5.aef2.models.EditableModel
isEditable, setEditable
-
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline
-
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, removeValidator, validate, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, discard, getComponent, isOnline, removeModelListener, setComponent
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
Methods inherited from interface com._1c.g5.aef2.models.value.IValue
addValueListener, createWorkingCopy, get, isEqual, removeValueListener, set
-
-
-
-
Constructor Detail
-
BmConfigurationCompatibilityModeModel
public BmConfigurationCompatibilityModeModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IRuntimeVersionSupport runtimeVersionSupport)
Constructor.- Parameters:
object
- the e-object to change, can not benull
feature
- the e-object feature to change, can not benull
runtimeVersionSupport
- the runtime cersion support
-
-
Method Detail
-
getMaxCompatibilityMode
public CompatibilityMode getMaxCompatibilityMode()
Returns the maximum possible value of compatibility mode for the project (which corresponds to its runtime version number). If the project runtime version isnull
, returns the highest avaiable value ofCompatibilityMode
.Lazily computed, doesn't invalidate (it is presumed the runtime version will not change during the lifetime of the model).
- Returns:
- The maximum compatibility mode
-
getRuntimeVersion
public Version getRuntimeVersion()
Returns the runtime version of the project of this model- Returns:
- The project's runtime version
-
getValues
public Collection<CompatibilityMode> getValues()
Returns the list of possible compatibility mode values, i. e. all versions between 8.3.6 and the runtime version of the project, inclusively.If the current compatibility mode is outside of the above list, it will be added to it.
- Returns:
- The list of possible compatibility modes
-
-