/**\r
+\r
* Copyright (C) 2009 EDIT\r
+\r
* European Distributed Institute of Taxonomy\r
+\r
* http://www.e-taxonomy.eu\r
+\r
*\r
+\r
* The contents of this file are subject to the Mozilla Public License Version 1.1\r
+\r
* See LICENSE.TXT at the top of this package for the full license terms.\r
+\r
*/\r
+\r
package eu.etaxonomy.cdm.remote.json.processor.bean;\r
\r
+\r
+\r
import java.util.List;\r
\r
+\r
+\r
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;\r
+\r
import net.sf.json.JSONObject;\r
+\r
import net.sf.json.JsonConfig;\r
\r
+\r
+\r
/**\r
+\r
* @author a.kohlbecker\r
+\r
* @since 09.06.2009\r
+\r
+ * @deprecated unused\r
+\r
*/\r
+\r
+@Deprecated\r
+\r
public class TaxonRelationshipBeanProcessor extends AbstractCdmBeanProcessor<TaxonRelationship> {\r
\r
+\r
+\r
@Override\r
+\r
public List<String> getIgnorePropNames() {\r
+\r
return null;\r
+\r
}\r
\r
+\r
+\r
@Override\r
+\r
public JSONObject processBeanSecondStep(TaxonRelationship bean, JSONObject json, JsonConfig jsonConfig) {\r
\r
+\r
+\r
json.element("fromTaxon", bean.getFromTaxon(), jsonConfig);\r
+\r
json.element("toTaxon", bean.getToTaxon(), jsonConfig);\r
\r
+\r
+\r
return json;\r
+\r
}\r
+\r
}
\ No newline at end of file
<bean
class="eu.etaxonomy.cdm.remote.json.processor.bean.NameRelationshipBeanProcessor" />
</entry>
- <entry key="eu.etaxonomy.cdm.model.taxon.TaxonRelationship">
- <bean
- class="eu.etaxonomy.cdm.remote.json.processor.bean.TaxonRelationshipBeanProcessor" />
- </entry>
<entry key="eu.etaxonomy.cdm.model.term.TermBase">
<bean
class="eu.etaxonomy.cdm.remote.json.processor.bean.TermBaseBeanProcessor">