Class BmUnsettablePropertyFieldModel<T>

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

public class BmUnsettablePropertyFieldModel<T> extends BmValue<T> implements IUnsettablePropertyFieldModel<T,IBmObject>
AEF model for unsettable property field.
  • Constructor Details

    • BmUnsettablePropertyFieldModel

      public BmUnsettablePropertyFieldModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
      Parameters:
      object - the object, cannot be null
      feature - the object feature, cannot be null
  • Method Details

    • dispose

      public void dispose()
      Description copied from interface: IModel
      Disposes this model.
      Specified by:
      dispose in interface IModel
      Overrides:
      dispose in class BmValue<T>
    • getSetStateModel

      public IValue<Boolean> getSetStateModel()
      Description copied from interface: IUnsettablePropertyFieldModel
      Returns the set state model.
      Specified by:
      getSetStateModel in interface IUnsettablePropertyFieldModel<T,IBmObject>
      Returns:
      the set state model, cannot be null
    • isSetStateEditable

      public boolean isSetStateEditable()
      Description copied from interface: IUnsettablePropertyFieldModel
      Checks is set state model enable.
      Specified by:
      isSetStateEditable in interface IUnsettablePropertyFieldModel<T,IBmObject>
      Returns:
      true if enable.
    • setObjectValue

      protected void setObjectValue(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, T 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).
      Overrides:
      setObjectValue in class BmValue<T>
      Parameters:
      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.