public class ScriptableQNameMap<K,V>
extends org.alfresco.service.namespace.QNameMap<K,V>
implements org.mozilla.javascript.Scriptable
| Constructor and Description |
|---|
ScriptableQNameMap(org.alfresco.service.namespace.NamespacePrefixResolverProvider resolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int index) |
void |
delete(String name) |
Object |
get(int index,
org.mozilla.javascript.Scriptable start) |
Object |
get(String name,
org.mozilla.javascript.Scriptable start) |
String |
getClassName() |
Object |
getDefaultValue(Class hint) |
Object[] |
getIds() |
org.mozilla.javascript.Scriptable |
getParentScope() |
org.mozilla.javascript.Scriptable |
getPrototype() |
boolean |
has(int index,
org.mozilla.javascript.Scriptable start) |
boolean |
has(String name,
org.mozilla.javascript.Scriptable start) |
boolean |
hasInstance(org.mozilla.javascript.Scriptable instance) |
boolean |
hasOwnProperty(Object key)
ECMAScript 5 hasOwnProperty method support.
|
void |
put(int index,
org.mozilla.javascript.Scriptable start,
Object value) |
void |
put(String name,
org.mozilla.javascript.Scriptable start,
Object value) |
void |
setParentScope(org.mozilla.javascript.Scriptable parent) |
void |
setPrototype(org.mozilla.javascript.Scriptable prototype) |
clear, clone, containsKey, containsValue, entrySet, get, getMapOfQNames, getResolver, isEmpty, keySet, put, putAll, remove, size, toString, valuesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic ScriptableQNameMap(org.alfresco.service.namespace.NamespacePrefixResolverProvider resolver)
resolver - NamespacePrefixResolverProviderpublic String getClassName()
getClassName in interface org.mozilla.javascript.ScriptableScriptable.getClassName()public Object get(String name, org.mozilla.javascript.Scriptable start)
get in interface org.mozilla.javascript.ScriptableScriptable.get(java.lang.String, org.mozilla.javascript.Scriptable)public Object get(int index, org.mozilla.javascript.Scriptable start)
get in interface org.mozilla.javascript.ScriptableScriptable.get(int, org.mozilla.javascript.Scriptable)public boolean hasOwnProperty(Object key)
key - Object key to test forpublic boolean has(String name, org.mozilla.javascript.Scriptable start)
has in interface org.mozilla.javascript.ScriptableScriptable.has(java.lang.String, org.mozilla.javascript.Scriptable)public boolean has(int index,
org.mozilla.javascript.Scriptable start)
has in interface org.mozilla.javascript.ScriptableScriptable.has(int, org.mozilla.javascript.Scriptable)public void put(String name, org.mozilla.javascript.Scriptable start, Object value)
put in interface org.mozilla.javascript.ScriptableScriptable.put(java.lang.String, org.mozilla.javascript.Scriptable, java.lang.Object)public void put(int index,
org.mozilla.javascript.Scriptable start,
Object value)
put in interface org.mozilla.javascript.ScriptableScriptable.put(int, org.mozilla.javascript.Scriptable, java.lang.Object)public void delete(String name)
delete in interface org.mozilla.javascript.ScriptableScriptable.delete(java.lang.String)public void delete(int index)
delete in interface org.mozilla.javascript.ScriptableScriptable.delete(int)public org.mozilla.javascript.Scriptable getPrototype()
getPrototype in interface org.mozilla.javascript.ScriptableScriptable.getPrototype()public void setPrototype(org.mozilla.javascript.Scriptable prototype)
setPrototype in interface org.mozilla.javascript.ScriptableScriptable.setPrototype(org.mozilla.javascript.Scriptable)public org.mozilla.javascript.Scriptable getParentScope()
getParentScope in interface org.mozilla.javascript.ScriptableScriptable.getParentScope()public void setParentScope(org.mozilla.javascript.Scriptable parent)
setParentScope in interface org.mozilla.javascript.ScriptableScriptable.setParentScope(org.mozilla.javascript.Scriptable)public Object[] getIds()
getIds in interface org.mozilla.javascript.ScriptableScriptable.getIds()public Object getDefaultValue(Class hint)
getDefaultValue in interface org.mozilla.javascript.ScriptableScriptable.getDefaultValue(java.lang.Class)public boolean hasInstance(org.mozilla.javascript.Scriptable instance)
hasInstance in interface org.mozilla.javascript.ScriptableScriptable.hasInstance(org.mozilla.javascript.Scriptable)Copyright © 2005–2018 Alfresco Software. All rights reserved.