1 // $Id: UUIDJSONValueProcessor.java 5587 2009-04-09 15:04:38Z a.kohlbecker $
3 * Copyright (C) 2009 EDIT European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 1.1 See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.remote
.json
.processor
.value
;
12 import net
.sf
.json
.JsonConfig
;
13 import net
.sf
.json
.processors
.JsonValueProcessor
;
15 import org
.apache
.log4j
.Logger
;
17 public class ClassJSONValueProcessor
implements JsonValueProcessor
{
19 private static final Logger logger
= Logger
.getLogger(ClassJSONValueProcessor
.class);
21 public Object
processArrayValue(Object obj
, JsonConfig jsonConfig
) {
22 logger
.debug("Processing Class");
26 Class clazz
= (Class
) obj
;
27 return clazz
.getSimpleName();
30 public Object
processObjectValue(String key
, Object obj
,
31 JsonConfig jsonConfig
) {
32 logger
.debug("Processing Class");
36 Class clazz
= (Class
) obj
;
37 return clazz
.getSimpleName();