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, values
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public ScriptableQNameMap(org.alfresco.service.namespace.NamespacePrefixResolverProvider resolver)
resolver
- NamespacePrefixResolverProviderpublic String getClassName()
getClassName
in interface org.mozilla.javascript.Scriptable
Scriptable.getClassName()
public Object get(String name, org.mozilla.javascript.Scriptable start)
get
in interface org.mozilla.javascript.Scriptable
Scriptable.get(java.lang.String, org.mozilla.javascript.Scriptable)
public Object get(int index, org.mozilla.javascript.Scriptable start)
get
in interface org.mozilla.javascript.Scriptable
Scriptable.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.Scriptable
Scriptable.has(java.lang.String, org.mozilla.javascript.Scriptable)
public boolean has(int index, org.mozilla.javascript.Scriptable start)
has
in interface org.mozilla.javascript.Scriptable
Scriptable.has(int, org.mozilla.javascript.Scriptable)
public void put(String name, org.mozilla.javascript.Scriptable start, Object value)
put
in interface org.mozilla.javascript.Scriptable
Scriptable.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.Scriptable
Scriptable.put(int, org.mozilla.javascript.Scriptable, java.lang.Object)
public void delete(String name)
delete
in interface org.mozilla.javascript.Scriptable
Scriptable.delete(java.lang.String)
public void delete(int index)
delete
in interface org.mozilla.javascript.Scriptable
Scriptable.delete(int)
public org.mozilla.javascript.Scriptable getPrototype()
getPrototype
in interface org.mozilla.javascript.Scriptable
Scriptable.getPrototype()
public void setPrototype(org.mozilla.javascript.Scriptable prototype)
setPrototype
in interface org.mozilla.javascript.Scriptable
Scriptable.setPrototype(org.mozilla.javascript.Scriptable)
public org.mozilla.javascript.Scriptable getParentScope()
getParentScope
in interface org.mozilla.javascript.Scriptable
Scriptable.getParentScope()
public void setParentScope(org.mozilla.javascript.Scriptable parent)
setParentScope
in interface org.mozilla.javascript.Scriptable
Scriptable.setParentScope(org.mozilla.javascript.Scriptable)
public Object[] getIds()
getIds
in interface org.mozilla.javascript.Scriptable
Scriptable.getIds()
public Object getDefaultValue(Class hint)
getDefaultValue
in interface org.mozilla.javascript.Scriptable
Scriptable.getDefaultValue(java.lang.Class)
public boolean hasInstance(org.mozilla.javascript.Scriptable instance)
hasInstance
in interface org.mozilla.javascript.Scriptable
Scriptable.hasInstance(org.mozilla.javascript.Scriptable)
Copyright © 2005–2017 Alfresco Software. All rights reserved.