Package jadex.xml

Class SubObjectConverter

  • All Implemented Interfaces:
    ISubObjectConverter

    public class SubObjectConverter
    extends java.lang.Object
    implements ISubObjectConverter
    Converter for subobjects. Consist of two object-object converter. The first for reading the second for writing.
    • Method Detail

      • convertObjectForRead

        public java.lang.Object convertObjectForRead​(java.lang.Object val,
                                                     IContext context)
                                              throws java.lang.Exception
        Convert an object to another object.
        Specified by:
        convertObjectForRead in interface ISubObjectConverter
        Parameters:
        val - The value to convert.
        Throws:
        java.lang.Exception
      • convertObjectForWrite

        public java.lang.Object convertObjectForWrite​(java.lang.Object val,
                                                      IContext context)
                                               throws java.lang.Exception
        Convert an object to another object.
        Specified by:
        convertObjectForWrite in interface ISubObjectConverter
        Parameters:
        val - The value to convert.
        Throws:
        java.lang.Exception