Interface IBmAttributeSerializer


  • public interface IBmAttributeSerializer
    Attribute serializer.
    • 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 be null.
        attribute - The attribute. May not be null.
        output - The data output to write the serialized value to. May not be null.
        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 be null.
        input - The data input to read the serialized value from. May not be null.
        Returns:
        the deserialized value, never null.
        Throws:
        IOException - if any I/O error occurs.