Class LogV2toV1Converter.LogEntryV2toV1Converter
java.lang.Object
edu.ucsb.nceas.metacat.dataone.convert.LogV2toV1Converter.LogEntryV2toV1Converter
- Enclosing class:
- LogV2toV1Converter
A class to convert a v2 LogEntry object to a v1 LogEntry object
- Author:
- tao
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.dataone.service.types.v1.LogEntry
convert
(org.dataone.service.types.v2.LogEntry logEntryV2) Convert a v2 LogEntry object to a v1 LogEntry object
-
Constructor Details
-
LogEntryV2toV1Converter
public LogEntryV2toV1Converter()Default constructor
-
-
Method Details
-
convert
public org.dataone.service.types.v1.LogEntry convert(org.dataone.service.types.v2.LogEntry logEntryV2) throws InstantiationException, IllegalAccessException, InvocationTargetException, org.dataone.exceptions.MarshallingException, IOException Convert a v2 LogEntry object to a v1 LogEntry 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
-