@@ -0,0 +1,1499 @@
+/*******************************************************************************%0A * Copyright (c) 2004 Actuate Corporation.%0A * All rights reserved. This program and the accompanying materials%0A * are made available under the terms of the Eclipse Public License v1.0%0A * which accompanies this distribution, and is available at%0A * http://www.eclipse.org/legal/epl-v10.html%0A *%0A * Contributors:%0A *  Actuate Corporation  - initial API and implementation%0A *******************************************************************************/%0A%0Apackage org.eclipse.birt.core.script;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Aimport org.mozilla.javascript.Scriptable;%0Aimport org.mozilla.javascript.ScriptableObject;%0A%0A/**%0A * Represents the scriptable object for Java object, %3Ccode%3ELinkedHashMap%3C/code%3E.%0A * This class supports to access hash map with index.%0A * %0A * @version $Revision$ $Date$%0A */%0A%0Apublic class NativeJavaLinkedHashMap extends NativeJavaMap%0A%7B%0A%0A%09public NativeJavaLinkedHashMap( )%0A%09%7B%0A%09%7D%0A%0A%09public NativeJavaLinkedHashMap( Scriptable scope, Object javaObject,%0A%09%09%09Class staticType )%0A%09%7B%0A%09%09super( scope, javaObject, staticType );%0A%09%7D%0A%0A%09/*%0A%09 * (non-Javadoc)%0A%09 * %0A%09 * @see org.mozilla.javascript.Scriptable#get(int,%0A%09 *      org.mozilla.javascript.Scriptable)%0A%09 */%0A%0A%09public Object get( int index, Scriptable start )%0A%09%7B%0A%09%09List list = new ArrayList( ( (Map) javaObject ).values( ) );%0A%09%09if ( list.size( ) %3E index )%0A%09%09%09return list.get( index );%0A%0A%09%09return Scriptable.NOT_FOUND;%0A%09%7D%0A%7D%0A

Add native object for the hash map which can be accessed by index.