Project

General

Profile

Download (1.01 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9

    
10
package eu.etaxonomy.cdm.remote.json.processor.bean;
11

    
12
import java.util.Arrays;
13
import java.util.List;
14

    
15
import org.apache.log4j.Logger;
16

    
17
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
18
import net.sf.json.JSONObject;
19
import net.sf.json.JsonConfig;
20

    
21
/**
22
 * @author n.hoffmann
23
 * @since Apr 9, 2010
24
 * @version 1.0
25
 */
26
public class TaxonNodeBeanProcessor extends AbstractCdmBeanProcessor<TaxonNode> {
27

    
28
	private static final Logger logger = Logger.getLogger(TaxonNodeBeanProcessor.class);
29

    
30
	@Override
31
	public List<String> getIgnorePropNames() {
32
		return Arrays.asList(new String[]{
33
				"parent", //TODO put in json-config ignore list ?
34
		});
35
	}
36

    
37
	@Override
38
	public JSONObject processBeanSecondStep(TaxonNode bean, JSONObject json,
39
			JsonConfig jsonConfig) {
40
		return json;
41
	}
42
}
(19-19/25)