1
|
/**
|
2
|
* Copyright (C) 2009 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
|
package eu.etaxonomy.cdm.remote.json.processor.bean;
|
10
|
|
11
|
import java.util.List;
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;
|
14
|
import net.sf.json.JSONObject;
|
15
|
import net.sf.json.JsonConfig;
|
16
|
|
17
|
/**
|
18
|
* @author a.kohlbecker
|
19
|
* @date 09.06.2009
|
20
|
*
|
21
|
*/
|
22
|
public class TaxonRelationshipBeanProcessor extends AbstractCdmBeanProcessor<TaxonRelationship> {
|
23
|
|
24
|
@Override
|
25
|
public List<String> getIgnorePropNames() {
|
26
|
return null;
|
27
|
}
|
28
|
|
29
|
@Override
|
30
|
public JSONObject processBeanSecondStep(TaxonRelationship bean, JSONObject json, JsonConfig jsonConfig) {
|
31
|
|
32
|
json.element("fromTaxon", bean.getFromTaxon(), jsonConfig);
|
33
|
json.element("toTaxon", bean.getToTaxon(), jsonConfig);
|
34
|
|
35
|
return json;
|
36
|
}
|
37
|
|
38
|
}
|