Class PropertyStateModel

    • Constructor Detail

      • PropertyStateModel

        public PropertyStateModel​(org.eclipse.emf.ecore.EObject object,
                                  org.eclipse.emf.ecore.EStructuralFeature feature,
                                  IMdAdoptedPropertyAccess mdAdoptedPropertyAccess,
                                  IMdAdoptedPropertyNotifier mdAdoptedPropertyNotifier,
                                  IModelObjectAdopter modelObjectAdopter)
        Constructor of PropertyStateModel.
        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 Detail

      • getObjectValue

        protected MdPropertyState getObjectValue​(org.eclipse.emf.ecore.EObject object,
                                                 org.eclipse.emf.ecore.EStructuralFeature feature,
                                                 boolean resolve)
        Description copied from class: BmValue
        Gets the current value of the provided model object feature.
        getObjectValue in class BmValue<MdPropertyState>
        object - the object to get new value, cannot be null
        feature - the feture to get, cannot be null
        the current value, can be null
      • setObjectValue

        protected void setObjectValue​(org.eclipse.emf.ecore.EObject object,
                                      org.eclipse.emf.ecore.EStructuralFeature feature,
                                      MdPropertyState newValue)
        Description copied from class: BmValue
        Sets the new value of the provided model object feature during the commit.
        The method is invoked within the task, so the given objects have the relevant state (e.g. attached to transaction).
        setObjectValue in class BmValue<MdPropertyState>
        object - the object to set new value, cannot be null.
        feature - the feture to set, cannot be null.
        newValue - the new value to set, can be null.
      • processBmValueChange

        protected void processBmValueChange​(Object value)
        Description copied from class: BmValue
        Process the BM value change and apply changes to this BmValue.
        processBmValueChange in class BmValue<MdPropertyState>
        value - the new value, can be null