org.apache.cocoon.components.flow.javascript
Class ScriptableMap
java.lang.Object
org.apache.cocoon.components.flow.javascript.ScriptableMap
- All Implemented Interfaces:
- org.mozilla.javascript.Scriptable, org.mozilla.javascript.Wrapper
public class ScriptableMap
- extends Object
- implements org.mozilla.javascript.Scriptable, org.mozilla.javascript.Wrapper
Wrap a java.util.Map for JavaScript.
- Version:
- CVS $Id: ScriptableMap.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Fields inherited from interface org.mozilla.javascript.Scriptable |
NOT_FOUND |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptableMap
public ScriptableMap()
ScriptableMap
public ScriptableMap(Map map)
getClassName
public String getClassName()
- Specified by:
getClassName
in interface org.mozilla.javascript.Scriptable
has
public boolean has(String name,
org.mozilla.javascript.Scriptable start)
- Specified by:
has
in interface org.mozilla.javascript.Scriptable
has
public boolean has(int index,
org.mozilla.javascript.Scriptable start)
- no numeric properties
- Specified by:
has
in interface org.mozilla.javascript.Scriptable
get
public Object get(String name,
org.mozilla.javascript.Scriptable start)
- Specified by:
get
in interface org.mozilla.javascript.Scriptable
get
public Object get(int index,
org.mozilla.javascript.Scriptable start)
- Specified by:
get
in interface org.mozilla.javascript.Scriptable
put
public void put(String name,
org.mozilla.javascript.Scriptable start,
Object value)
- Specified by:
put
in interface org.mozilla.javascript.Scriptable
put
public void put(int index,
org.mozilla.javascript.Scriptable start,
Object value)
- Specified by:
put
in interface org.mozilla.javascript.Scriptable
delete
public void delete(String id)
- Specified by:
delete
in interface org.mozilla.javascript.Scriptable
delete
public void delete(int index)
- Specified by:
delete
in interface org.mozilla.javascript.Scriptable
getPrototype
public org.mozilla.javascript.Scriptable getPrototype()
- Specified by:
getPrototype
in interface org.mozilla.javascript.Scriptable
setPrototype
public void setPrototype(org.mozilla.javascript.Scriptable prototype)
- Specified by:
setPrototype
in interface org.mozilla.javascript.Scriptable
getParentScope
public org.mozilla.javascript.Scriptable getParentScope()
- Specified by:
getParentScope
in interface org.mozilla.javascript.Scriptable
setParentScope
public void setParentScope(org.mozilla.javascript.Scriptable parent)
- Specified by:
setParentScope
in interface org.mozilla.javascript.Scriptable
getIds
public Object[] getIds()
- Specified by:
getIds
in interface org.mozilla.javascript.Scriptable
getDefaultValue
public Object getDefaultValue(Class typeHint)
- Specified by:
getDefaultValue
in interface org.mozilla.javascript.Scriptable
hasInstance
public boolean hasInstance(org.mozilla.javascript.Scriptable value)
- Specified by:
hasInstance
in interface org.mozilla.javascript.Scriptable
unwrap
public Object unwrap()
- Return the java.util.Map that is wrapped by this class.
- Specified by:
unwrap
in interface org.mozilla.javascript.Wrapper
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.