Package com._1c.g5.v8.bm.core
Interface IBmAttributeSerializer
-
public interface IBmAttributeSerializer
Attribute serializer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
deserialize(org.eclipse.emf.ecore.EAttribute attribute, DataInput input)
Deserializes attribute value.org.eclipse.emf.ecore.EDataType
getSupportedDataType()
Gets supported data type.void
serialize(Object value, org.eclipse.emf.ecore.EAttribute attribute, DataOutput output)
Serializes attribute value.
-
-
-
Method Detail
-
getSupportedDataType
org.eclipse.emf.ecore.EDataType getSupportedDataType()
Gets supported data type.- Returns:
- the supported data type, never
null
.
-
serialize
void serialize(Object value, org.eclipse.emf.ecore.EAttribute attribute, DataOutput output) throws IOException
Serializes attribute value.- 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
Object deserialize(org.eclipse.emf.ecore.EAttribute attribute, DataInput input) throws IOException
Deserializes attribute value.- 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.
-
-