Examples of PathTOTypeList


Examples of org.ontospread.xmlbind.PathTOTypeList

   
   
    Map<String, PathTO[]> spreadPathTable = new HashMap<String, PathTO[]>();
    for (EntryPathTableType entry : ontoSpreadXMLState.getSpreadPathTable().getSpreadTableTOs()) {
      String key = entry.getUri();
      PathTOTypeList pathTOs = entry.getPathTOs();
      PathTO []path = new PathTO[pathTOs==null?0:pathTOs.getPathTOs().size()];
      if(pathTOs != null){
        int i = 0;
        for (PathTOType pathTo : pathTOs.getPathTOs()) {
          path[i++] = new PathTO(pathTo.getUri(),pathTo.getRelations().getRelations().toArray(new String[pathTo.getRelations().getRelations().size()]));
       
      }     
      spreadPathTable.put(key, path);     
    }
    ontoSpreadState.setSpreadPathTable(spreadPathTable);
   
    SpreadedConceptTO[] result = new SpreadedConceptTO[ontoSpreadXMLState.getFinalSpreadedConcepts().getSpreadedConceptTOs().size()];
    int i = 0;
    for (SpreadedConceptTOType spreadedXML : ontoSpreadXMLState.getFinalSpreadedConcepts().getSpreadedConceptTOs()){
      PathTOTypeList pathTOs = spreadedXML.getPathTOs();
      PathTO []path = new PathTO[pathTOs==null?0:pathTOs.getPathTOs().size()];
      if(pathTOs != null){
        int j = 0;
        for (PathTOType pathTo : pathTOs.getPathTOs()) {
          path[j++] = new PathTO(pathTo.getUri(),pathTo.getRelations().getRelations().toArray(new String[pathTo.getRelations().getRelations().size()]));
       
      }     
      double score = spreadedXML.getScore();
      result[i++] = new SpreadedConceptTO(new ConceptTO(spreadedXML.getConceptUri()),path,score );
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.