Servoy 5.x Public API

com.servoy.j2db.scripting
Interface JSConvertedMap<K,V>

All Superinterfaces:
Map<K,V>

public interface JSConvertedMap<K,V>
extends Map<K,V>

Tagging interface that plugin can return as a map that will then be converted to a NativeObject in javascript. They keys of this map can only be Integers or Strings, an Integer will used as the index on Scriptable.put(int, Scriptable, Object) and the String will be used as the name in the call to Scriptable.put(String, Scriptable, Object)


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Method Summary
 String getConstructorName()
          returns the constructor name like "Array" that should be created.
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

getConstructorName

String getConstructorName()
returns the constructor name like "Array" that should be created. Used in the call to Context#newObject(Scriptable, String) if it returns null then it defaults to 'Object' with a call to Context#newObject(Scriptable)

Returns:
String the constructor name, null if default NativeObject should be created.

Copyright © 2010 Servoy B.V.