Project

General

Profile

Download (1.35 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2009 EDIT
4
* European Distributed Institute of Taxonomy
5
* http://www.e-taxonomy.eu
6
*
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10
package eu.etaxonomy.cdm.remote.json.processor.bean;
11

    
12
import java.util.List;
13

    
14
import net.sf.json.JSONObject;
15
import net.sf.json.JsonConfig;
16
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;
17

    
18
/**
19
 * @author a.kohlbecker
20
 * @date 09.06.2009
21
 *
22
 */
23
public class TaxonRelationshipBeanProcessor extends AbstractCdmBeanProcessor<TaxonRelationship> {
24

    
25
    /* (non-Javadoc)
26
     * @see eu.etaxonomy.cdm.remote.json.processor.AbstractCdmBeanProcessor#getIgnorePropNames()
27
     */
28
    @Override
29
    public List<String> getIgnorePropNames() {
30
        return null;
31
    }
32

    
33
    /* (non-Javadoc)
34
     * @see eu.etaxonomy.cdm.remote.json.processor.AbstractCdmBeanProcessor#processBeanSecondStep(eu.etaxonomy.cdm.model.common.CdmBase, net.sf.json.JSONObject, net.sf.json.JsonConfig)
35
     */
36
    @Override
37
    public JSONObject processBeanSecondStep(TaxonRelationship bean, JSONObject json, JsonConfig jsonConfig) {
38

    
39
        json.element("fromTaxon", bean.getFromTaxon(), jsonConfig);
40
        json.element("toTaxon", bean.getToTaxon(), jsonConfig);
41

    
42
        return json;
43
    }
44

    
45
}
(21-21/25)