com.tle.common.scripting.types
Interface MapScriptType
Declaration: public interface MapScriptType

 

An abstraction from a real java map for use in scripting

 

 

Methods Summary
abstract java.lang.Object get(java.lang.Object key)
    
Returns the value for the specified key
abstract boolean isEmpty()
    
Returns true if there are no key/value pairs in the Map
abstract java.util.List<java.lang.Object> listKeys()
    
Returns a list of keys for this Map

 

 

 

 

get

 

public abstract java.lang.Object get( java.lang.Object key)

 

Returns the value for the specified key

 

Parameters:
key-
Returns:
The value for the key

 

 

 

listKeys

 

public abstract java.util.List<java.lang.Object> listKeys( )

 

Returns a list of keys for this Map

 

Returns:
A List of keys in the Map

 

 

 

isEmpty

 

public abstract boolean isEmpty( )

 

Returns true if there are no key/value pairs in the Map

 

Returns:
True if there are no key/values in the Map