org.alfresco.repo.jscript
Class ContentAwareScriptableQNameMap

java.lang.Object
  extended by org.alfresco.service.namespace.QNameMap
      extended by org.alfresco.repo.jscript.ScriptableQNameMap
          extended by org.alfresco.repo.jscript.ContentAwareScriptableQNameMap
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map, org.mozilla.javascript.Scriptable

public class ContentAwareScriptableQNameMap
extends ScriptableQNameMap

Specialised map class for supporting the initialisation of 'cm:content' properties for JavaScript API objects. The JavaScript needs supporting objects to be initialised for certain data-types. If the 'cm:content' property is not already initialised then it must be created on demand or it will not be available to the users of the API. See AR-1673.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry
 
Field Summary
 
Fields inherited from class org.alfresco.service.namespace.QNameMap
contents, logger, provider
 
Fields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
ContentAwareScriptableQNameMap(ScriptNode factory, ServiceRegistry services)
          Constructor
 
Method Summary
 java.lang.Object get(java.lang.Object name)
           
 
Methods inherited from class org.alfresco.repo.jscript.ScriptableQNameMap
delete, delete, get, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, has, hasInstance, put, put, setParentScope, setPrototype
 
Methods inherited from class org.alfresco.service.namespace.QNameMap
clear, clone, containsKey, containsValue, entrySet, 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
equals, hashCode
 

Constructor Detail

ContentAwareScriptableQNameMap

public ContentAwareScriptableQNameMap(ScriptNode factory,
                                      ServiceRegistry services)
Constructor

Parameters:
factory - Factory to provide further ScriptNode objects
services - ServiceRegistry
Method Detail

get

public java.lang.Object get(java.lang.Object name)
Specified by:
get in interface java.util.Map
Overrides:
get in class org.alfresco.service.namespace.QNameMap


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.