// $Id$\r
/**\r
* Copyright (C) 2007 EDIT\r
- * European Distributed Institute of Taxonomy \r
+ * European Distributed Institute of Taxonomy\r
* http://www.e-taxonomy.eu\r
- * \r
+ *\r
* The contents of this file are subject to the Mozilla Public License Version 1.1\r
* See LICENSE.TXT at the top of this package for the full license terms.\r
*/\r
*/\r
@Override\r
public JSONObject processBean(Object bean, JsonConfig jsonConfig) {\r
- \r
+\r
TaxonNode node = (TaxonNode)bean;\r
JSONObject json = new JSONObject();\r
json.element("class", "TaxonNodeDao");\r
json.element("taggedTitle", taggedTitle, jsonConfig);\r
json.element("taxonUuid", node.getTaxon().getUuid(), jsonConfig);\r
//Sec can be null (web services can return null for sec)\r
- //comparation made for avoding view exceptions\r
+ //comparation made for avoiding view exceptions\r
if (node.getTaxon().getSec() == null){\r
json.element("secUuid", "null");\r
}else{\r
json.element("secUuid", node.getTaxon().getSec().getUuid(), jsonConfig);\r
- } \r
+ }\r
json.element("taxonomicChildrenCount", node.getCountChildren(), jsonConfig);\r
json.element("unplaced", node.getTaxon().isUnplaced());\r
json.element("excluded", node.getTaxon().isExcluded());\r
}\r
json.element("rankLabel", ranklabel, jsonConfig);\r
//json.element("treeUuid", node.getClassification().getUuid(), jsonConfig);\r
- \r
+\r
return json;\r
}\r
\r