org.gcube.data.spd.plugin.fwk.capabilities
Class ClassificationCapability
java.lang.Object
org.gcube.data.spd.plugin.fwk.capabilities.ClassificationCapability
- All Implemented Interfaces:
- Searchable<org.gcube.data.spd.model.TaxonomyItem>
public abstract class ClassificationCapability
- extends Object
- implements Searchable<org.gcube.data.spd.model.TaxonomyItem>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassificationCapability
public ClassificationCapability()
retrieveTaxonChildsByTaxonId
public abstract List<org.gcube.data.spd.model.TaxonomyItem> retrieveTaxonChildsByTaxonId(String taxonId)
throws org.gcube.data.spd.model.exceptions.IdNotValidException
- retrieves all children giving a taxon id
- Parameters:
taxonId - the taxon id
- Returns:
- a list of taxon
- Throws:
org.gcube.data.spd.model.exceptions.IdNotValidException
retrieveTaxonByIds
public abstract void retrieveTaxonByIds(Iterator<String> ids,
ObjectWriter<org.gcube.data.spd.model.TaxonomyItem> writer)
- retrieves taxon by ids
- Parameters:
ids - the taxon ids
retrieveTaxonById
public abstract org.gcube.data.spd.model.TaxonomyItem retrieveTaxonById(String id)
throws org.gcube.data.spd.model.exceptions.IdNotValidException,
org.gcube.data.spd.model.exceptions.ExternalRepositoryException
- retrieves taxon by id
- Parameters:
taxonId - the taxon id
- Returns:
- a taxon
- Throws:
org.gcube.data.spd.model.exceptions.IdNotValidException
org.gcube.data.spd.model.exceptions.ExternalRepositoryException
getSynonymnsById
public void getSynonymnsById(ObjectWriter<org.gcube.data.spd.model.TaxonomyItem> writer,
String id)
throws org.gcube.data.spd.model.exceptions.IdNotValidException,
org.gcube.data.spd.model.exceptions.MethodNotSupportedException,
org.gcube.data.spd.model.exceptions.ExternalRepositoryException
- retrieve a list of synonyms
- Parameters:
writer - ids -
- Throws:
org.gcube.data.spd.model.exceptions.IdNotValidException
org.gcube.data.spd.model.exceptions.MethodNotSupportedException
org.gcube.data.spd.model.exceptions.ExternalRepositoryException
getHandledClass
public Class<org.gcube.data.spd.model.TaxonomyItem> getHandledClass()
- Specified by:
getHandledClass in interface Searchable<org.gcube.data.spd.model.TaxonomyItem>
Copyright © 2013. All Rights Reserved.