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
Nested ClassesModifier and TypeClassDescriptionstatic classA class to convert a v2 LogEntry object to a v1 LogEntry objectstatic classA wrapper class to gap the difference in the signature of setEvent between the v2 and v1 LogEntry objects.static classA wrapper class to gap the difference in the signature of setEvent between the v2 and v1 LogEntry objects. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.dataone.service.types.v1.Logconvert(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:
IOExceptionJiBXExceptionInvocationTargetExceptionIllegalAccessExceptionInstantiationExceptionorg.dataone.exceptions.MarshallingException
-