mil.dod.th.ose.shared/src/mil/dod/th/ose/shared/SharedMessageUtils.java
public static Map<String, String> convertListSimpleTypesMapEntrytoMap(final List<SimpleTypesMapEntry> listMap) 
    {
        final Map<String, String> map = new HashMap<String, String>();
        for (SimpleTypesMapEntry entry: listMap)        
        {
            if (map.get(entry.getKey()) != null)
            {
                throw new IllegalArgumentException("Map already contains key"); 
                
            }
            if (entry.getValue().getType() != Type.STRING)
            {
                throw new IllegalArgumentException("Value is not a string"); 
                
            }
            map.put(entry.getKey(), (String)convertMultitypeToObject(entry.getValue()));   
    
        }
        return map;
    }
/**
     * Converts a list of SimpleTypesMapEntry used by the remote interface to a native java type Map object.
     * @param listMap
     *    list of map entries
     * @return
     *    Map object that has the keys and converted values   
     */
Converts a list of SimpleTypesMapEntry used by the remote interface to a native java type Map object.
@param listMap
list of map entries
@return
Map object that has the keys and converted values
Converts a list of SimpleTypesMapEntry used by the remote interface to a native java type Map object . @param listMap list of map entries @return Map object that has the keys and converted values
public static Map<String, String> convertListSimpleTypesMapEntrytoMap(final List<SimpleTypesMapEntry> listMap) 
    {
        final Map<String, String> map = new HashMap<String, String>();
        for (SimpleTypesMapEntry entry: listMap)        
        {
            if (map.get(entry.getKey()) != null)
            {
                throw new IllegalArgumentException("Map already contains key"); 
            }
            if (entry.getValue().getType() != Type.STRING)
            {
                throw new IllegalArgumentException("Value is not a string"); 
            }
            map.put(entry.getKey(), (String)convertMultitypeToObject(entry.getValue()));   
        }
        return map;
    }
public static Map < String , String > convertListSimpleTypesMapEntrytoMap ( final List < SimpleTypesMapEntry > listMap ) { final Map < String , String > map = new HashMap < String , String > ( ) ; for ( SimpleTypesMapEntry entry : listMap ) { if ( map . get ( entry . getKey ( ) ) != null ) { throw new IllegalArgumentException ( "Map already contains key" ) ; } if ( entry . getValue ( ) . getType ( ) != Type . STRING ) { throw new IllegalArgumentException ( "Value is not a string" ) ; } map . put ( entry . getKey ( ) , ( String ) convertMultitypeToObject ( entry . getValue ( ) ) ) ; } return map ; }
Converts a list of SimpleTypesMapEntry used by the remote interface to a native java type Map object.
Converts a list of SimpleTypesMapEntry used by the remote interface to a native java type Map object .