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.location.Point;
|
16
|
|
17
|
/**
|
18
|
* @author a.kohlbecker
|
19
|
* @date 20.10.2010
|
20
|
*
|
21
|
*/
|
22
|
public class PointBeanProcessor extends AbstractBeanProcessor<Point> {
|
23
|
|
24
|
/* (non-Javadoc)
|
25
|
* @see eu.etaxonomy.cdm.remote.json.processor.bean.AbstractBeanProcessor#getIgnorePropNames()
|
26
|
*/
|
27
|
@Override
|
28
|
public List<String> getIgnorePropNames() {
|
29
|
// TODO Auto-generated method stub
|
30
|
return null;
|
31
|
}
|
32
|
|
33
|
/* (non-Javadoc)
|
34
|
* @see eu.etaxonomy.cdm.remote.json.processor.bean.AbstractBeanProcessor#processBeanSecondStep(java.lang.Object, net.sf.json.JSONObject, net.sf.json.JsonConfig)
|
35
|
*/
|
36
|
@Override
|
37
|
public JSONObject processBeanSecondStep(Point bean, JSONObject json,
|
38
|
JsonConfig jsonConfig) {
|
39
|
json.element("sexagesimalString", bean.toSexagesimalString(false, true));
|
40
|
return json;
|
41
|
}
|
42
|
|
43
|
}
|