org.gcube.data.spd.model.products
Class ResultItem

java.lang.Object
  extended by org.gcube.data.spd.model.products.Taxon
      extended by org.gcube.data.spd.model.products.ResultItem
All Implemented Interfaces:
ResultElement, TaxonomyInterface

public class ResultItem
extends Taxon
implements ResultElement


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.gcube.data.spd.model.products.ResultElement
ResultElement.ProductsType
 
Field Summary
 
Fields inherited from class org.gcube.data.spd.model.products.Taxon
parent
 
Constructor Summary
protected ResultItem()
           
  ResultItem(String id, String scientificName)
           
 
Method Summary
 void addProperty(ElementProperty property)
           
static ResultItem fromTree(org.gcube.data.trees.data.Tree tree)
           
 List<CommonName> getCommonNames()
           
 String getCredits()
           
 DataSet getDataSet()
           
 List<Product> getProducts()
           
 List<ElementProperty> getProperties()
           
 String getProvider()
           
 ResultElement.ProductsType getType()
           
 void resetProperties()
           
 void setCommonNames(List<CommonName> commonNames)
           
 void setCredits(String credits)
           
 void setDataSet(DataSet dataSet)
           
 void setProducts(List<Product> products)
           
 void setProvider(String provider)
           
 String toString()
           
 org.gcube.data.trees.data.Tree toTree()
           
 
Methods inherited from class org.gcube.data.spd.model.products.Taxon
fromNode, getAuthor, getCitation, getId, getLsid, getParent, getRank, getScientificName, node, setAuthor, setCitation, setId, setLsid, setParent, setRank, setScientificName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.gcube.data.spd.model.products.ResultElement
getAuthor, getCitation, getId
 

Constructor Detail

ResultItem

protected ResultItem()

ResultItem

public ResultItem(String id,
                  String scientificName)
Method Detail

getProvider

public String getProvider()
Specified by:
getProvider in interface ResultElement

setProvider

public void setProvider(String provider)

getDataSet

public DataSet getDataSet()

setDataSet

public void setDataSet(DataSet dataSet)

getProducts

public List<Product> getProducts()

setProducts

public void setProducts(List<Product> products)

getCredits

public String getCredits()
Specified by:
getCredits in interface ResultElement
Specified by:
getCredits in interface TaxonomyInterface
Overrides:
getCredits in class Taxon

setCredits

public void setCredits(String credits)
Overrides:
setCredits in class Taxon

getCommonNames

public List<CommonName> getCommonNames()
Returns:
a Map with key language and value commonName

setCommonNames

public void setCommonNames(List<CommonName> commonNames)

addProperty

public void addProperty(ElementProperty property)

resetProperties

public void resetProperties()

getProperties

public List<ElementProperty> getProperties()
Specified by:
getProperties in interface ResultElement

toTree

public org.gcube.data.trees.data.Tree toTree()

fromTree

public static ResultItem fromTree(org.gcube.data.trees.data.Tree tree)
                           throws Exception
Throws:
Exception

getType

public ResultElement.ProductsType getType()
Specified by:
getType in interface ResultElement

toString

public String toString()
Overrides:
toString in class Taxon


Copyright © 2013. All Rights Reserved.