Class ContentAwareScriptableQNameMap<K,​V>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map, org.mozilla.javascript.Scriptable

    public class ContentAwareScriptableQNameMap<K,​V>
    extends ScriptableQNameMap<K,​V>
    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.
    Author:
    Kevin Roast
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • 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 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<K,​V>
        Overrides:
        get in class org.alfresco.service.namespace.QNameMap<K,​V>