Revision 49717
Added by Sandro La Bruzzo over 6 years ago
modules/dnet-pid-resolver/trunk/src/main/java/eu/dnetlib/pid/resolver/model/serializer/ResolvedObjectDeserializer.java | ||
---|---|---|
7 | 7 |
import eu.dnetlib.pid.resolver.model.ObjectType; |
8 | 8 |
import eu.dnetlib.pid.resolver.model.ResolvedObject; |
9 | 9 |
import eu.dnetlib.pid.resolver.model.SubjectType; |
10 |
import org.apache.commons.logging.Log; |
|
11 |
import org.apache.commons.logging.LogFactory; |
|
10 | 12 |
|
11 | 13 |
import java.util.ArrayList; |
12 | 14 |
import java.util.List; |
13 | 15 |
|
14 | 16 |
public abstract class ResolvedObjectDeserializer implements JsonDeserializer<ResolvedObject> { |
15 | 17 |
|
18 |
private static final Log log = LogFactory.getLog(ResolvedObjectDeserializer.class); |
|
19 |
|
|
16 | 20 |
protected void partialDeserialization(final JsonObject root, final ResolvedObject resolvedObject) { |
21 |
|
|
22 |
log.debug("called partialDeserialization"); |
|
23 |
|
|
17 | 24 |
final JsonElement pid = root.get("pid"); |
18 | 25 |
resolvedObject.setPid(pid!= null ? pid.getAsString():""); |
19 | 26 |
final JsonElement pidType = root.get("pidType"); |
Also available in: Unified diff
added Log