Class LogV2toV1Converter
java.lang.Object
edu.ucsb.nceas.metacat.dataone.convert.LogV2toV1Converter
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A class to convert a v2 LogEntry object to a v1 LogEntry objectstatic class
A wrapper class to gap the difference in the signature of setEvent between the v2 and v1 LogEntry objects.static class
A wrapper class to gap the difference in the signature of setEvent between the v2 and v1 LogEntry objects. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.dataone.service.types.v1.Log
convert
(org.dataone.service.types.v2.Log logV2) Convert a v2 Log object to a v1 Log object
-
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.
- Throws:
IOException
JiBXException
InvocationTargetException
IllegalAccessException
InstantiationException
org.dataone.exceptions.MarshallingException
-