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)
Convertvalue
according to Structure Definition configuration assuming it is from univaltype
and from indexed column.ConversionResult
convertCellValue(java.lang.Object value, sk.ipesoft.d2000.base.UnivalType type, java.lang.String structureDefinitionName, java.lang.String columnName)
Convertvalue
according to Structure Definition configuration assuming it is from univaltype
and from named column.ConversionResult
convertCellValue(sk.ipesoft.d2000.datatable.TableCell<?,?,?,?,?,?,?> value, int structureDefinitionHobj)
Convert value ofcell
according to Structure Definition configuration.ConversionResult
convertCellValue(sk.ipesoft.d2000.datatable.TableCell<?,?,?,?,?,?,?> value, java.lang.String structureDefinitionName)
Convert value ofcell
according to Structure Definition configuration.ConversionResult
convertIndirectValue(java.lang.Object value, sk.ipesoft.d2000.base.UnivalType type, SingleIndirectInfoResponse indirectInfo)
Convert univalvalue
according to description inindirectInfo
assuming it is fromtype
unival.ConversionResult
convertIndirectValue(sk.ipesoft.d2000.base.UnivalValue<?> value, SingleIndirectInfoResponse indirectInfo)
Convert univalvalue
according to description inindirectInfo
.ConversionResult
convertValue(java.lang.Object value, sk.ipesoft.d2000.base.UnivalType type, D2ObjectInfo objectInfo)
Convertvalue
according to description inobjectInfo
assuming it is from univaltype
.ConversionResult
convertValue(sk.ipesoft.d2000.base.UnivalValue<?> value, D2ObjectInfo objectInfo)
Convert univalvalue
according to description inobjectInfo
.
-
-
-
Method Detail
-
convertCellValue
ConversionResult convertCellValue(sk.ipesoft.d2000.datatable.TableCell<?,?,?,?,?,?,?> value, int structureDefinitionHobj)
Convert value ofcell
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 cellstructureDefinitionHobj
- HOBJ of Structure Definition- Returns:
- result of conversion
-
convertCellValue
ConversionResult convertCellValue(sk.ipesoft.d2000.datatable.TableCell<?,?,?,?,?,?,?> value, java.lang.String structureDefinitionName)
Convert value ofcell
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 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)
Convertvalue
according to Structure Definition configuration assuming it is from univaltype
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 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)
Convertvalue
according to Structure Definition configuration assuming it is from univaltype
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 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 univalvalue
according 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 univalvalue
according to description inindirectInfo
assuming it is fromtype
unival.- 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 univalvalue
according 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)
Convertvalue
according to description inobjectInfo
assuming 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
-
-