org.gcube.data.spd.itis
Class Utils

java.lang.Object
  extended by org.gcube.data.spd.itis.Utils

public class Utils
extends Object


Constructor Summary
Utils()
           
 
Method Summary
static Calendar getCalendar(String date)
           
static List<org.gcube.data.spd.plugin.fwk.model.CommonName> getCommonNameFromId(String id)
          Get a list of common names from a id
static org.gcube.data.spd.plugin.fwk.model.Taxon getHierarchyFromId(String id)
          Get Hierarchy by ID (return Taxon)
static org.gcube.data.spd.plugin.fwk.model.TaxonomyItem getHierarchyTaxFromId(String id)
          Get Hierarchy by ID (return TaxonomyItem)
static String getInfoFromId(String id, String type)
          Get information (author or rank) by Id
static void retrieveTaxa(org.gcube.data.spd.plugin.fwk.writers.ObjectWriter<org.gcube.data.spd.plugin.fwk.model.TaxonomyItem> writer, String name, String type)
          Retrive taxa
static void searchByTsn(String tsn, org.gcube.data.spd.plugin.fwk.writers.ObjectWriter<org.gcube.data.spd.plugin.fwk.model.ResultItem> writer, String completeName, String type, String id)
          Search by id (if you are looking for a common name) or search by scientific name
static org.gcube.data.spd.plugin.fwk.model.TaxonomyStatus setTaxonomyStatus(String status, String notes, String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

searchByTsn

public static void searchByTsn(String tsn,
                               org.gcube.data.spd.plugin.fwk.writers.ObjectWriter<org.gcube.data.spd.plugin.fwk.model.ResultItem> writer,
                               String completeName,
                               String type,
                               String id)
Search by id (if you are looking for a common name) or search by scientific name


getHierarchyFromId

public static org.gcube.data.spd.plugin.fwk.model.Taxon getHierarchyFromId(String id)
Get Hierarchy by ID (return Taxon)


getHierarchyTaxFromId

public static org.gcube.data.spd.plugin.fwk.model.TaxonomyItem getHierarchyTaxFromId(String id)
Get Hierarchy by ID (return TaxonomyItem)


setTaxonomyStatus

public static org.gcube.data.spd.plugin.fwk.model.TaxonomyStatus setTaxonomyStatus(String status,
                                                                                   String notes,
                                                                                   String id)

getCommonNameFromId

public static List<org.gcube.data.spd.plugin.fwk.model.CommonName> getCommonNameFromId(String id)
Get a list of common names from a id


getInfoFromId

public static String getInfoFromId(String id,
                                   String type)
Get information (author or rank) by Id


getCalendar

public static Calendar getCalendar(String date)

retrieveTaxa

public static void retrieveTaxa(org.gcube.data.spd.plugin.fwk.writers.ObjectWriter<org.gcube.data.spd.plugin.fwk.model.TaxonomyItem> writer,
                                String name,
                                String type)
Retrive taxa



Copyright © 2012. All Rights Reserved.