Interface Convertor
-
public interface ConvertorInstance 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 ConversionResultconvertCellValue(java.lang.Object value, sk.ipesoft.d2000.base.UnivalType type, int structureDefinitionHobj, int columnIndex)Convertvalueaccording to Structure Definition configuration assuming it is from univaltypeand from indexed column.ConversionResultconvertCellValue(java.lang.Object value, sk.ipesoft.d2000.base.UnivalType type, java.lang.String structureDefinitionName, java.lang.String columnName)Convertvalueaccording to Structure Definition configuration assuming it is from univaltypeand from named column.ConversionResultconvertCellValue(sk.ipesoft.d2000.datatable.TableCell<?,?,?,?,?,?,?> value, int structureDefinitionHobj)Convert value ofcellaccording to Structure Definition configuration.ConversionResultconvertCellValue(sk.ipesoft.d2000.datatable.TableCell<?,?,?,?,?,?,?> value, java.lang.String structureDefinitionName)Convert value ofcellaccording to Structure Definition configuration.ConversionResultconvertIndirectValue(java.lang.Object value, sk.ipesoft.d2000.base.UnivalType type, SingleIndirectInfoResponse indirectInfo)Convert univalvalueaccording to description inindirectInfoassuming it is fromtypeunival.ConversionResultconvertIndirectValue(sk.ipesoft.d2000.base.UnivalValue<?> value, SingleIndirectInfoResponse indirectInfo)Convert univalvalueaccording to description inindirectInfo.ConversionResultconvertValue(java.lang.Object value, sk.ipesoft.d2000.base.UnivalType type, D2ObjectInfo objectInfo)Convertvalueaccording to description inobjectInfoassuming it is from univaltype.ConversionResultconvertValue(sk.ipesoft.d2000.base.UnivalValue<?> value, D2ObjectInfo objectInfo)Convert univalvalueaccording to description inobjectInfo.
-
-
-
Method Detail
-
convertCellValue
ConversionResult convertCellValue(sk.ipesoft.d2000.datatable.TableCell<?,?,?,?,?,?,?> value, int structureDefinitionHobj)
Convert value ofcellaccording 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 cellstructureDefinitionHobj- HOBJ of Structure Definition- Returns:
- result of conversion
-
convertCellValue
ConversionResult convertCellValue(sk.ipesoft.d2000.datatable.TableCell<?,?,?,?,?,?,?> value, java.lang.String structureDefinitionName)
Convert value ofcellaccording 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 cellstructureDefinitionName- 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)
Convertvalueaccording to Structure Definition configuration assuming it is from univaltypeand 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 celltype- type of the original univalstructureDefinitionHobj- HOBJ of Structure DefinitioncolumnIndex- 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)
Convertvalueaccording to Structure Definition configuration assuming it is from univaltypeand 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 celltype- type of the original univalstructureDefinitionName- name of Structure DefinitioncolumnName- name of column- Returns:
- result of conversion
-
convertIndirectValue
ConversionResult convertIndirectValue(sk.ipesoft.d2000.base.UnivalValue<?> value, SingleIndirectInfoResponse indirectInfo)
Convert univalvalueaccording to description inindirectInfo.- Parameters:
value- actual value of an objectindirectInfo- 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 univalvalueaccording to description inindirectInfoassuming it is fromtypeunival.- Parameters:
value- actual value of an objecttype- type of the original univalindirectInfo- description of object's configuration- Returns:
- result of conversion
-
convertValue
ConversionResult convertValue(sk.ipesoft.d2000.base.UnivalValue<?> value, D2ObjectInfo objectInfo)
Convert univalvalueaccording to description inobjectInfo.Only
D2ObjectInfo.getStateTextHobj()andD2ObjectInfo.getTransformationPaletteIndex()are actually read. Value ofD2ObjectInfo.getValue()is ignored because it is considered to be outdated.- Parameters:
value- current unival value of an objectobjectInfo- description of object's configuration- Returns:
- result of conversion
-
convertValue
ConversionResult convertValue(java.lang.Object value, sk.ipesoft.d2000.base.UnivalType type, D2ObjectInfo objectInfo)
Convertvalueaccording to description inobjectInfoassuming it is from univaltype.Only
D2ObjectInfo.getStateTextHobj()andD2ObjectInfo.getTransformationPaletteIndex()are actually read. Value ofD2ObjectInfo.getValue()is ignored because it is considered to be outdated.- Parameters:
value- current unival value of an objecttype- type of the original univalobjectInfo- description of object's configuration- Returns:
- result of conversion
-
-