@ SuppressWarnings ( "unchecked" ) public static EObject createEntry ( String key , Object value , EClass type ) { if ( type == EcorePackage . Literals . ESTRING_TO_STRING_MAP_ENTRY ) { final EObject entry = EcoreUtil . create ( EcorePackage . Literals . ESTRING_TO_STRING_MAP_ENTRY ) ; entry . eSet ( EcorePackage . Literals . ESTRING_TO_STRING_MAP_ENTRY__KEY , key ) ; entry . eSet ( EcorePackage . Literals . ESTRING_TO_STRING_MAP_ENTRY__VALUE , value ) ; return entry ; } else { final BasicEMapEntry entry = new BasicEMapEntry <> ( ) ; entry . eSetClass ( type ) ; entry . setKey ( key ) ; entry . setValue ( value ) ; return entry ; } }
Creates a map entry of type string string .