Changeset 6714


Ignore:
Timestamp:
10/30/15 17:18:57 (9 years ago)
Author:
davor.ostojic@oeaw.ac.at
Message:
 
Location:
vlo/branches/vlo-3.3-oeaw/vlo-vocabularies/src/main/java/eu/clarin/cmdi/vlo/pojo
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.3-oeaw/vlo-vocabularies/src/main/java/eu/clarin/cmdi/vlo/pojo/VariantsMap.java

    r6618 r6714  
    11package eu.clarin.cmdi.vlo.pojo;
    22
    3 import java.util.HashMap;
     3import java.util.LinkedList;
    44import java.util.List;
    55import java.util.Map;
     
    6363       
    6464       
    65        
    66         public Map<String, List<Variant>> getMap(){
    67                 Map<String, List<Variant>> map = new HashMap<String, List<Variant>>();
     65        public List<VocabularyEntry> getMap(){
     66                List map = new LinkedList<VocabularyEntry>();
     67               
    6868                for(Mapping m: mappings)
    69                         map.put(m.getValue(), m.getVariants());
     69                        if(m.getVariants() != null)
     70                                for(Variant v: m.getVariants()){                                       
     71                                        VocabularyEntry entry = new VocabularyEntry(v.getValue(), m.getValue(), v.isRegExp(), v.getCrossMappings());
     72                                }
    7073               
    7174                return map;
    72         }       
     75               
     76        }
    7377       
    7478}
Note: See TracChangeset for help on using the changeset viewer.