mil.dod.th.ose.shared/src/mil/dod/th/ose/shared/SharedMessageUtils.java
public static List<SimpleTypesMapEntry> convertDictionarytoMap(final Dictionary<String, Object> dictionaryMap) 
            throws IllegalArgumentException 
    {
        final List<SimpleTypesMapEntry> listMap = new ArrayList<SimpleTypesMapEntry>();
        final Enumeration<String> keyEnum = dictionaryMap.keys();
        while (keyEnum.hasMoreElements())   
        {
            final String key = keyEnum.nextElement();
            final Multitype entryValue = convertObjectToMultitype(dictionaryMap.get(key));
            final SimpleTypesMapEntry entry = SimpleTypesMapEntry.newBuilder().
                    setValue(entryValue).setKey(key).build();
            listMap.add(entry);      
        }
        return listMap;
         
    }
/**
     * Converts a native java type Dictionary object to a list of SimpleTypesMapEntry used by the remote interface.
     * @param dictionaryMap
     *    Dictionary object that has the keys and values. 
     *    The map must contain objects that can be converted to a {@link Multitype}. 
     * @throws IllegalArgumentException
     *   thrown when a duplicate key or a non multitype object is used 
     * @return
     *    List of SimpleTypesMapEntry object
     */
Converts a native java type Dictionary object to a list of SimpleTypesMapEntry used by the remote interface.
@param dictionaryMap
Dictionary object that has the keys and values.
The map must contain objects that can be converted to a  Multitype.
@throws IllegalArgumentException
thrown when a duplicate key or a non multitype object is used
@return
List of SimpleTypesMapEntry object
Converts a native java type Dictionary object to a list of SimpleTypesMapEntry used by the remote interface . @param dictionaryMap Dictionary object that has the keys and values . The map must contain objects that can be converted to a Multitype . @throws IllegalArgumentException thrown when a duplicate key or a non multitype object is used @return List of SimpleTypesMapEntry object
public static List<SimpleTypesMapEntry> convertDictionarytoMap(final Dictionary<String, Object> dictionaryMap) 
            throws IllegalArgumentException 
    {
        final List<SimpleTypesMapEntry> listMap = new ArrayList<SimpleTypesMapEntry>();
        final Enumeration<String> keyEnum = dictionaryMap.keys();
        while (keyEnum.hasMoreElements())   
        {
            final String key = keyEnum.nextElement();
            final Multitype entryValue = convertObjectToMultitype(dictionaryMap.get(key));
            final SimpleTypesMapEntry entry = SimpleTypesMapEntry.newBuilder().
                    setValue(entryValue).setKey(key).build();
            listMap.add(entry);      
        }
        return listMap;
    }
public static List < SimpleTypesMapEntry > convertDictionarytoMap ( final Dictionary < String , Object > dictionaryMap ) throws IllegalArgumentException { final List < SimpleTypesMapEntry > listMap = new ArrayList < SimpleTypesMapEntry > ( ) ; final Enumeration < String > keyEnum = dictionaryMap . keys ( ) ; while ( keyEnum . hasMoreElements ( ) ) { final String key = keyEnum . nextElement ( ) ; final Multitype entryValue = convertObjectToMultitype ( dictionaryMap . get ( key ) ) ; final SimpleTypesMapEntry entry = SimpleTypesMapEntry . newBuilder ( ) . setValue ( entryValue ) . setKey ( key ) . build ( ) ; listMap . add ( entry ) ; } return listMap ; }
Converts a native java type Dictionary object to a list of SimpleTypesMapEntry used by the remote interface.
Converts a native java type Dictionary object to a list of SimpleTypesMapEntry used by the remote interface .