Examples of EntryPrizeTableTOType


Examples of org.ontospread.xmlbind.EntryPrizeTableTOType

      entryConceptTOs.add(entryXML );     
    }
    HashMap<PathTO,Integer> prizeTable = ontoSpreadState.getConceptsToPrize().getPrizeTable();
    ontoSpreadXMLState.setPrizeTable(factory.createEntryPrizeTableListType());
    for (PathTO pathTO : prizeTable.keySet()) {
      EntryPrizeTableTOType entry = new EntryPrizeTableTOType();
      PathTOType pathToAdd = new PathTOType();
      pathToAdd.setUri(pathTO.getConceptUri());
      pathToAdd.setRelations(factory.createListUrisType());
      if(pathTO.getRelationsUri() != null){
        pathToAdd.getRelations().getRelations().addAll(Arrays.asList((pathTO.getRelationsUri())));
      }
      entry.setHits(prizeTable.get(pathTO));
      entry.setPathTO(pathToAdd);
      ontoSpreadXMLState.getPrizeTable().getEntryPrizeTableTOs().add(entry);
    }
   
    ConceptTO conceptToSpread = ontoSpreadState.getConceptToSpread();
    ontoSpreadXMLState.setConceptTOSpread(conceptToSpread.getUri());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.