Class ExtendedConfigurationObjectPropertyStateModel

All Implemented Interfaces:
IAttribute<IBmObject,org.eclipse.emf.ecore.EStructuralFeature>, IEditableModel, IEmfAttribute<IBmObject>, IModel, IEmfValueAttribute<MdPropertyState,IBmObject>, IValue<MdPropertyState>, IValidable, IModelApiAwareModel

public class ExtendedConfigurationObjectPropertyStateModel extends PropertyStateModel
Custom PropertyStateModel for edit property state without value change side effects
  • Constructor Details

    • ExtendedConfigurationObjectPropertyStateModel

      public ExtendedConfigurationObjectPropertyStateModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IMdAdoptedPropertyAccess mdAdoptedPropertyAccess, IMdAdoptedPropertyNotifier mdAdoptedPropertyNotifier, IModelObjectAdopter modelObjectAdopter)
      Parameters:
      object - the object, cannot be null
      feature - the object feature, cannot be null
      mdAdoptedPropertyAccess - the metadata adopted property access, cannot be null
      mdAdoptedPropertyNotifier - the metadata adopted property notifier, cannot be null
      modelObjectAdopter - the model object adopter, cannot be null
  • Method Details

    • shouldSetSourceValue

      protected boolean shouldSetSourceValue(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, MdPropertyType type, MdPropertyState newState)
      Description copied from class: PropertyStateModel
      Check value is should be set to new state
      Overrides:
      shouldSetSourceValue in class PropertyStateModel
      feature - the property to set, cannot be null
      type - the metadata property type, cannot be null
      newState - the new value of the given property, may be null to erase property value
      Returns:
      true if value in given object and specified feature should be unsets, false in otherwise
    • shouldUnsetValue

      protected boolean shouldUnsetValue(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, MdPropertyState newState)
      Description copied from class: PropertyStateModel
      Check value is should be unset to default
      Overrides:
      shouldUnsetValue in class PropertyStateModel
      Parameters:
      object - the object to set new value, cannot be null.
      feature - the feture to set, cannot be null.
      newState - the new state value to set, can be null.
      Returns:
      true if value in given object and specified feature should be unsets, false in otherwise