Package org.bioversityinternational.model.germplasm.CropDescriptorQuery.Crop

Examples of org.bioversityinternational.model.germplasm.CropDescriptorQuery.Crop.Species


        crop.setName(language, valueMap.get("vernacularName") ) ;
        crop.setDefinition(language, valueMap.get("description") ) ;
       
        String speciesId = valueMap.get("species") ;
        if(speciesId != null) {
          Species species = crop.getSpecies( speciesId ) ;
         
          // speciesName is only stored in English for now?
          species.setName("en", valueMap.get("speciesName"));
          species.setDefinition(language, valueMap.get("speciesDescription"));
         
          species.setGenus( valueMap.get("speciesGenus"));
          Boolean isIncluded = new Boolean(StringUtils.defaultIfBlank(valueMap.get("speciesIncluded"), "true")) ;
          species.isIncluded(isIncluded);
        }
          }
      if ( _VERBOSE ){
        System.out.println("loadTaxonomy() - catalog of crops:\n");
        dumpCrops();
View Full Code Here


        return included ;
      }
    }
   
    public Species getSpecies(String uri) {
      Species s ;
      if(! species.containsKey(uri)) {
        s = this.new Species(uri) ;
        species.put(uri, s) ;
      } else {
        s = species.get(uri) ;
      }
      return s ;
View Full Code Here

      return this.species ;
    }

    public void dumpSpecies() {
      for(String key:species.keySet()) {
        Species s = species.get(key) ;
        s.dump("\t");
      }
    }
View Full Code Here

TOP

Related Classes of org.bioversityinternational.model.germplasm.CropDescriptorQuery.Crop.Species

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.