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 net.sf.json.JSONObject;
|
14
|
import net.sf.json.JsonConfig;
|
15
|
import eu.etaxonomy.cdm.model.name.NameRelationship;
|
16
|
|
17
|
/**
|
18
|
* @author a.kohlbecker
|
19
|
* @date 09.06.2009
|
20
|
*
|
21
|
*/
|
22
|
public class NameRelationshipBeanProcessor extends AbstractCdmBeanProcessor<NameRelationship> {
|
23
|
|
24
|
/* (non-Javadoc)
|
25
|
* @see eu.etaxonomy.cdm.remote.json.processor.AbstractCdmBeanProcessor#getIgnorePropNames()
|
26
|
*/
|
27
|
@Override
|
28
|
public List<String> getIgnorePropNames() {
|
29
|
return null;
|
30
|
}
|
31
|
|
32
|
/* (non-Javadoc)
|
33
|
* @see eu.etaxonomy.cdm.remote.json.processor.AbstractCdmBeanProcessor#processBeanSecondStep(eu.etaxonomy.cdm.model.common.CdmBase, net.sf.json.JSONObject, net.sf.json.JsonConfig)
|
34
|
*/
|
35
|
@Override
|
36
|
public JSONObject processBeanSecondStep(NameRelationship bean, JSONObject json, JsonConfig jsonConfig) {
|
37
|
|
38
|
json.element("fromName", bean.getFromName(), jsonConfig);
|
39
|
json.element("toName", bean.getToName(), jsonConfig);
|
40
|
|
41
|
return json;
|
42
|
}
|
43
|
|
44
|
}
|