Interface Convertor



  • public interface Convertor
    Instance converts unival values to their string representation according to the D2000 rules and configuration.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      ConversionResult convertCellValue​(java.lang.Object value, sk.ipesoft.d2000.base.UnivalType type, int structureDefinitionHobj, int columnIndex)
      Convert value according to Structure Definition configuration assuming it is from unival type and from indexed column.
      ConversionResult convertCellValue​(java.lang.Object value, sk.ipesoft.d2000.base.UnivalType type, java.lang.String structureDefinitionName, java.lang.String columnName)
      Convert value according to Structure Definition configuration assuming it is from unival type and from named column.
      ConversionResult convertCellValue​(sk.ipesoft.d2000.datatable.TableCell<?,?,?,?,?,?,?> value, int structureDefinitionHobj)
      Convert value of cell according to Structure Definition configuration.
      ConversionResult convertCellValue​(sk.ipesoft.d2000.datatable.TableCell<?,?,?,?,?,?,?> value, java.lang.String structureDefinitionName)
      Convert value of cell according to Structure Definition configuration.
      ConversionResult convertIndirectValue​(java.lang.Object value, sk.ipesoft.d2000.base.UnivalType type, SingleIndirectInfoResponse indirectInfo)
      Convert unival value according to description in indirectInfo assuming it is from type unival.
      ConversionResult convertIndirectValue​(sk.ipesoft.d2000.base.UnivalValue<?> value, SingleIndirectInfoResponse indirectInfo)
      Convert unival value according to description in indirectInfo.
      ConversionResult convertValue​(java.lang.Object value, sk.ipesoft.d2000.base.UnivalType type, D2ObjectInfo objectInfo)
      Convert value according to description in objectInfo assuming it is from unival type.
      ConversionResult convertValue​(sk.ipesoft.d2000.base.UnivalValue<?> value, D2ObjectInfo objectInfo)
      Convert unival value according to description in objectInfo.
    • Method Detail

      • convertCellValue

        ConversionResult convertCellValue​(sk.ipesoft.d2000.datatable.TableCell<?,?,?,?,?,?,?> value,
                                          int structureDefinitionHobj)
        Convert value of cell according to Structure Definition configuration. Structure Definition is identified by its HOBJ.

        Warning: Do not use for indirect object reference in object-typed column. Use convertIndirectValue(UnivalValue, SingleIndirectInfoResponse) instead.

        Parameters:
        value - actual value of cell
        structureDefinitionHobj - HOBJ of Structure Definition
        Returns:
        result of conversion
      • convertCellValue

        ConversionResult convertCellValue​(sk.ipesoft.d2000.datatable.TableCell<?,?,?,?,?,?,?> value,
                                          java.lang.String structureDefinitionName)
        Convert value of cell according to Structure Definition configuration. Structure Definition is identified by its name.

        Warning: Do not use for indirect object reference in object-typed column. Use convertIndirectValue(UnivalValue, SingleIndirectInfoResponse) instead.

        Parameters:
        value - actual value of cell
        structureDefinitionName - name of Structure Definition
        Returns:
        result of conversion
      • convertCellValue

        ConversionResult convertCellValue​(java.lang.Object value,
                                          sk.ipesoft.d2000.base.UnivalType type,
                                          int structureDefinitionHobj,
                                          int columnIndex)
        Convert value according to Structure Definition configuration assuming it is from unival type and from indexed column. Structure Definition is identified by its HOBJ.

        Warning: Do not use for indirect object reference in object-typed column. Use convertIndirectValue(Object, UnivalType, SingleIndirectInfoResponse) instead.

        Parameters:
        value - actual value of cell
        type - type of the original unival
        structureDefinitionHobj - HOBJ of Structure Definition
        columnIndex - zero-based index of column
        Returns:
        result of conversion
      • convertCellValue

        ConversionResult convertCellValue​(java.lang.Object value,
                                          sk.ipesoft.d2000.base.UnivalType type,
                                          java.lang.String structureDefinitionName,
                                          java.lang.String columnName)
        Convert value according to Structure Definition configuration assuming it is from unival type and from named column. Structure Definition is identified by its name.

        Warning: Do not use for indirect object reference in object-typed column. Use convertIndirectValue(Object, UnivalType, SingleIndirectInfoResponse) instead.

        Parameters:
        value - actual value of cell
        type - type of the original unival
        structureDefinitionName - name of Structure Definition
        columnName - name of column
        Returns:
        result of conversion
      • convertIndirectValue

        ConversionResult convertIndirectValue​(sk.ipesoft.d2000.base.UnivalValue<?> value,
                                              SingleIndirectInfoResponse indirectInfo)
        Convert unival value according to description in indirectInfo.
        Parameters:
        value - actual value of an object
        indirectInfo - description of object's configuration
        Returns:
        result of conversion
      • convertIndirectValue

        ConversionResult convertIndirectValue​(java.lang.Object value,
                                              sk.ipesoft.d2000.base.UnivalType type,
                                              SingleIndirectInfoResponse indirectInfo)
        Convert unival value according to description in indirectInfo assuming it is from type unival.
        Parameters:
        value - actual value of an object
        type - type of the original unival
        indirectInfo - description of object's configuration
        Returns:
        result of conversion