Class ScriptableHashMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<K,V>
org.alfresco.repo.jscript.ScriptableHashMap<K,V>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>, org.mozilla.javascript.Scriptable
Direct Known Subclasses:
ScriptAction.ScriptableParameterMap

public class ScriptableHashMap<K,V> extends LinkedHashMap<K,V> implements org.mozilla.javascript.Scriptable
Author:
Kevin Roast
See Also:
  • Constructor Details

    • ScriptableHashMap

      public ScriptableHashMap()
  • Method Details

    • getClassName

      public String getClassName()
      Specified by:
      getClassName in interface org.mozilla.javascript.Scriptable
      See Also:
      • Scriptable.getClassName()
    • get

      public Object get(String name, org.mozilla.javascript.Scriptable start)
      Specified by:
      get in interface org.mozilla.javascript.Scriptable
      See Also:
      • Scriptable.get(java.lang.String, org.mozilla.javascript.Scriptable)
    • get

      public Object get(int index, org.mozilla.javascript.Scriptable start)
      Specified by:
      get in interface org.mozilla.javascript.Scriptable
      See Also:
      • Scriptable.get(int, org.mozilla.javascript.Scriptable)
    • hasOwnProperty

      public boolean hasOwnProperty(Object key)
      ECMAScript 5 hasOwnProperty method support.
      Parameters:
      key - Object key to test for
      Returns:
      true if found, false otherwise
    • has

      public boolean has(String name, org.mozilla.javascript.Scriptable start)
      Specified by:
      has in interface org.mozilla.javascript.Scriptable
      See Also:
      • Scriptable.has(java.lang.String, org.mozilla.javascript.Scriptable)
    • has

      public boolean has(int index, org.mozilla.javascript.Scriptable start)
      Specified by:
      has in interface org.mozilla.javascript.Scriptable
      See Also:
      • Scriptable.has(int, 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
      See Also:
      • Scriptable.put(java.lang.String, org.mozilla.javascript.Scriptable, java.lang.Object)
    • put

      public void put(int index, org.mozilla.javascript.Scriptable start, Object value)
      Specified by:
      put in interface org.mozilla.javascript.Scriptable
      See Also:
      • Scriptable.put(int, org.mozilla.javascript.Scriptable, java.lang.Object)
    • delete

      public void delete(String name)
      Specified by:
      delete in interface org.mozilla.javascript.Scriptable
      See Also:
      • Scriptable.delete(java.lang.String)
    • delete

      public void delete(int index)
      Specified by:
      delete in interface org.mozilla.javascript.Scriptable
      See Also:
      • Scriptable.delete(int)
    • getPrototype

      public org.mozilla.javascript.Scriptable getPrototype()
      Specified by:
      getPrototype in interface org.mozilla.javascript.Scriptable
      See Also:
      • Scriptable.getPrototype()
    • setPrototype

      public void setPrototype(org.mozilla.javascript.Scriptable prototype)
      Specified by:
      setPrototype in interface org.mozilla.javascript.Scriptable
      See Also:
      • Scriptable.setPrototype(org.mozilla.javascript.Scriptable)
    • getParentScope

      public org.mozilla.javascript.Scriptable getParentScope()
      Specified by:
      getParentScope in interface org.mozilla.javascript.Scriptable
      See Also:
      • Scriptable.getParentScope()
    • setParentScope

      public void setParentScope(org.mozilla.javascript.Scriptable parent)
      Specified by:
      setParentScope in interface org.mozilla.javascript.Scriptable
      See Also:
      • Scriptable.setParentScope(org.mozilla.javascript.Scriptable)
    • getIds

      public Object[] getIds()
      Specified by:
      getIds in interface org.mozilla.javascript.Scriptable
      See Also:
      • Scriptable.getIds()
    • getDefaultValue

      public Object getDefaultValue(Class hint)
      Specified by:
      getDefaultValue in interface org.mozilla.javascript.Scriptable
      See Also:
      • Scriptable.getDefaultValue(java.lang.Class)
    • hasInstance

      public boolean hasInstance(org.mozilla.javascript.Scriptable instance)
      Specified by:
      hasInstance in interface org.mozilla.javascript.Scriptable
      See Also:
      • Scriptable.hasInstance(org.mozilla.javascript.Scriptable)