Class DataMapping

java.lang.Object
de.pisa.psa.rst.uti.DataMapping

public class DataMapping extends Object
Mapping between a Java field and String data
Since:
19.07.2023
Author:
weiland
  • Constructor Details

    • DataMapping

      public DataMapping(Object object)
      Constructor
      Parameters:
      object - object to use
  • Method Details

    • setStringMapper

      public void setStringMapper(DataMapping.StringMapper mapper)
      set a string mapper
      Parameters:
      mapper - mapper
    • set

      public void set(Field field, String data) throws Exception
      set data in a field
      Parameters:
      field - class field
      data - data to set
      Throws:
      Exception
    • get

      public String get(Field field) throws Exception
      get the field content as string
      Parameters:
      field - class field
      Returns:
      data string
      Throws:
      Exception