Package org.apache.sling.scripting.javascript.wrapper
package org.apache.sling.scripting.javascript.wrapper
-
ClassDescriptionBase class for Scriptable objects, uses the NativeJavaObject wrapper to provide default wrapping of methods and properties (SLING-397)The
ScriptableMap
wrapper provides easier access to a map's values by setting the map's keys as properties to the JavaScript object representing theMap
.A wrapper for JCR nodes that exposes all properties and child nodes as properties of a Javascript object.Wrap a JCR Property as a ScriptableResource in JavaScript has following signature: [String] getName() [String] name [Object] getResourceMetadata() [Object] resourceMetadata [String] getPath() [String] path [String] getResourceType() [String] resourceType [String] getResourceSuperType() [String] resourceSuperType [Resource] getParent() [Resource] parent [ResourceResolver] getResourceResolver() [ResourceResolver] resourceResolver [Resource] getChild(String) [Resource[]] getChildren() [Resource[]] listChildren() [Boolean] isResourceType(String) [Object] propertiesScriptable wrapper for the JCR Version classScriptable wrapper for the JCR VersionHistory class