Class LogV2toV1Converter

java.lang.Object
edu.ucsb.nceas.metacat.dataone.convert.LogV2toV1Converter

public class LogV2toV1Converter extends Object
This class represents a converter to convert an DataONE v2 Log object to a v1 Log object. It probably will be removed to d1_common_java in the future.
Author:
tao
  • Constructor Details

    • LogV2toV1Converter

      public LogV2toV1Converter()
      Default constructor
  • Method Details

    • convert

      public org.dataone.service.types.v1.Log convert(org.dataone.service.types.v2.Log logV2) throws InstantiationException, IllegalAccessException, InvocationTargetException, org.dataone.exceptions.MarshallingException, IOException
      Convert a v2 Log object to a v1 Log object
      Parameters:
      logV2 - - the v2 Log object which needs to be converted
      Returns:
      a v1 Log object. If the logV2 is null, null will be returned.