Class BinaryDataModel

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

public class BinaryDataModel extends BmValue<BinaryData>
The Bm model for BinaryData.
  • Constructor Details

    • BinaryDataModel

      public BinaryDataModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
      Creates a new model.
      Parameters:
      object - the object.
      feature - the feature
  • Method Details

    • get

      public BinaryData get()
      Specified by:
      get in interface IValue<BinaryData>
      Overrides:
      get in class Value<BinaryData>
      Returns:
      the stored value.
    • restoreFromFile

      public void restoreFromFile(String fileName)
      Restores the binary data from the given file name.
      Parameters:
      fileName - the file name.
    • saveToFile

      public void saveToFile(String fileName)
      Save the current BinaryData to file with the given file name.
      Parameters:
      fileName - the file name.