Class ByteArrayAttributeSerializer
java.lang.Object
com._1c.g5.v8.dt.internal.bsl.resource.ByteArrayAttributeSerializer
- All Implemented Interfaces:
IBmAttributeSerializer
Custom BM serializer for a byte array-mapped EMF type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(org.eclipse.emf.ecore.EAttribute attribute, DataInput input) Deserializes attribute value.org.eclipse.emf.ecore.EDataType
Gets supported data type.void
serialize
(Object value, org.eclipse.emf.ecore.EAttribute attribute, DataOutput output) Serializes attribute value.
-
Constructor Details
-
ByteArrayAttributeSerializer
public ByteArrayAttributeSerializer()
-
-
Method Details
-
getSupportedDataType
public org.eclipse.emf.ecore.EDataType getSupportedDataType()Description copied from interface:IBmAttributeSerializer
Gets supported data type.- Specified by:
getSupportedDataType
in interfaceIBmAttributeSerializer
- Returns:
- the supported data type, never
null
.
-
serialize
public void serialize(Object value, org.eclipse.emf.ecore.EAttribute attribute, DataOutput output) throws IOException Description copied from interface:IBmAttributeSerializer
Serializes attribute value.- Specified by:
serialize
in interfaceIBmAttributeSerializer
- Parameters:
value
- The value to serialize. May not benull
.attribute
- The attribute. May not benull
.output
- The data output to write the serialized value to. May not benull
.- Throws:
IOException
- if any I/O error occurs.
-
deserialize
public Object deserialize(org.eclipse.emf.ecore.EAttribute attribute, DataInput input) throws IOException Description copied from interface:IBmAttributeSerializer
Deserializes attribute value.- Specified by:
deserialize
in interfaceIBmAttributeSerializer
- Parameters:
attribute
- The attribute. May not benull
.input
- The data input to read the serialized value from. May not benull
.- Returns:
- the deserialized value, never
null
. - Throws:
IOException
- if any I/O error occurs.
-