Package org.alfresco.repo.jscript
Class ScriptableQNameMap<K,V>
- java.lang.Object
-
- org.alfresco.service.namespace.QNameMap<K,V>
-
- org.alfresco.repo.jscript.ScriptableQNameMap<K,V>
-
- All Implemented Interfaces:
Serializable,Cloneable,Map,org.mozilla.javascript.Scriptable
- Direct Known Subclasses:
ContentAwareScriptableQNameMap
public class ScriptableQNameMap<K,V> extends org.alfresco.service.namespace.QNameMap<K,V> implements org.mozilla.javascript.Scriptable- Author:
- Kevin Roast
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScriptableQNameMap(org.alfresco.service.namespace.NamespacePrefixResolverProvider resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int index)voiddelete(String name)Objectget(int index, org.mozilla.javascript.Scriptable start)Objectget(String name, org.mozilla.javascript.Scriptable start)StringgetClassName()ObjectgetDefaultValue(Class hint)Object[]getIds()org.mozilla.javascript.ScriptablegetParentScope()org.mozilla.javascript.ScriptablegetPrototype()booleanhas(int index, org.mozilla.javascript.Scriptable start)booleanhas(String name, org.mozilla.javascript.Scriptable start)booleanhasInstance(org.mozilla.javascript.Scriptable instance)booleanhasOwnProperty(Object key)ECMAScript 5 hasOwnProperty method support.voidput(int index, org.mozilla.javascript.Scriptable start, Object value)voidput(String name, org.mozilla.javascript.Scriptable start, Object value)voidsetParentScope(org.mozilla.javascript.Scriptable parent)voidsetPrototype(org.mozilla.javascript.Scriptable prototype)-
Methods inherited from class org.alfresco.service.namespace.QNameMap
clear, clone, containsKey, containsValue, entrySet, get, getMapOfQNames, getResolver, isEmpty, keySet, put, putAll, remove, size, toString, values
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
getClassName
public String getClassName()
- Specified by:
getClassNamein interfaceorg.mozilla.javascript.Scriptable- See Also:
Scriptable.getClassName()
-
get
public Object get(String name, org.mozilla.javascript.Scriptable start)
- Specified by:
getin interfaceorg.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:
getin interfaceorg.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:
hasin interfaceorg.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:
hasin interfaceorg.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:
putin interfaceorg.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:
putin interfaceorg.mozilla.javascript.Scriptable- See Also:
Scriptable.put(int, org.mozilla.javascript.Scriptable, java.lang.Object)
-
delete
public void delete(String name)
- Specified by:
deletein interfaceorg.mozilla.javascript.Scriptable- See Also:
Scriptable.delete(java.lang.String)
-
delete
public void delete(int index)
- Specified by:
deletein interfaceorg.mozilla.javascript.Scriptable- See Also:
Scriptable.delete(int)
-
getPrototype
public org.mozilla.javascript.Scriptable getPrototype()
- Specified by:
getPrototypein interfaceorg.mozilla.javascript.Scriptable- See Also:
Scriptable.getPrototype()
-
setPrototype
public void setPrototype(org.mozilla.javascript.Scriptable prototype)
- Specified by:
setPrototypein interfaceorg.mozilla.javascript.Scriptable- See Also:
Scriptable.setPrototype(org.mozilla.javascript.Scriptable)
-
getParentScope
public org.mozilla.javascript.Scriptable getParentScope()
- Specified by:
getParentScopein interfaceorg.mozilla.javascript.Scriptable- See Also:
Scriptable.getParentScope()
-
setParentScope
public void setParentScope(org.mozilla.javascript.Scriptable parent)
- Specified by:
setParentScopein interfaceorg.mozilla.javascript.Scriptable- See Also:
Scriptable.setParentScope(org.mozilla.javascript.Scriptable)
-
getIds
public Object[] getIds()
- Specified by:
getIdsin interfaceorg.mozilla.javascript.Scriptable- See Also:
Scriptable.getIds()
-
getDefaultValue
public Object getDefaultValue(Class hint)
- Specified by:
getDefaultValuein interfaceorg.mozilla.javascript.Scriptable- See Also:
Scriptable.getDefaultValue(java.lang.Class)
-
hasInstance
public boolean hasInstance(org.mozilla.javascript.Scriptable instance)
- Specified by:
hasInstancein interfaceorg.mozilla.javascript.Scriptable- See Also:
Scriptable.hasInstance(org.mozilla.javascript.Scriptable)
-
-