Class BinaryDataModel
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<BinaryData>
com._1c.g5.v8.dt.internal.binary.ui.aef.models.BinaryDataModel
- All Implemented Interfaces:
IAttribute<IBmObject,
,org.eclipse.emf.ecore.EStructuralFeature> IEditableModel
,IEmfAttribute<IBmObject>
,IModel
,IEmfValueAttribute<BinaryData,
,IBmObject> IValue<BinaryData>
,IValidable
,IModelApiAwareModel
The Bm model for
BinaryData
.-
Constructor Summary
ConstructorsConstructorDescriptionBinaryDataModel
(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature) Creates a new model. -
Method Summary
Modifier and TypeMethodDescriptionget()
void
restoreFromFile
(String fileName) Restores the binary data from the given file name.void
saveToFile
(String fileName) Save the currentBinaryData
to file with the given file name.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, 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, isEqual, removeValueListener, set
-
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
- Specified by:
get
in interfaceIValue<BinaryData>
- Overrides:
get
in classValue<BinaryData>
- Returns:
- the stored value.
-
restoreFromFile
Restores the binary data from the given file name.- Parameters:
fileName
- the file name.
-
saveToFile
Save the currentBinaryData
to file with the given file name.- Parameters:
fileName
- the file name.
-