Class ScriptableVersion
java.lang.Object
org.mozilla.javascript.ScriptableObject
org.apache.sling.scripting.javascript.wrapper.ScriptableBase
org.apache.sling.scripting.javascript.wrapper.ScriptableNode
org.apache.sling.scripting.javascript.wrapper.ScriptableVersion
- All Implemented Interfaces:
Serializable,SlingWrapper,org.mozilla.javascript.ConstProperties,org.mozilla.javascript.debug.DebuggableObject,org.mozilla.javascript.Scriptable,org.mozilla.javascript.Wrapper
Scriptable wrapper for the JCR Version class
- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.sling.scripting.javascript.wrapper.ScriptableBase
JSFUNC_PREFIXFields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe name of the JavaScript host object "class".protected Class<?>Class<?>[]The list of Java classes wrapped by this wrapper.protected ObjectvoidjsConstructor(Object res) Methods inherited from class org.apache.sling.scripting.javascript.wrapper.ScriptableNode
get, getDefaultValue, getIds, has, jsFunction_addNode, jsFunction_getBaseVersion, jsFunction_getCheckedOut, jsFunction_getChildren, jsFunction_getDefinition, jsFunction_getDepth, jsFunction_getIndex, jsFunction_getLock, jsFunction_getLocked, jsFunction_getMixinNodeTypes, jsFunction_getModified, jsFunction_getName, jsFunction_getNew, jsFunction_getNode, jsFunction_getNodes, jsFunction_getParent, jsFunction_getPath, jsFunction_getPrimaryItem, jsFunction_getPrimaryNodeType, jsFunction_getProperties, jsFunction_getProperty, jsFunction_getReferences, jsFunction_getSession, jsFunction_getUUID, jsFunction_getVersionHistory, jsFunction_hasNode, jsFunction_remove, toString, unwrapMethods inherited from class org.apache.sling.scripting.javascript.wrapper.ScriptableBase
getNativeMethods inherited from class org.mozilla.javascript.ScriptableObject
associateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype
-
Field Details
-
CLASSNAME
- See Also:
-
-
Constructor Details
-
ScriptableVersion
public ScriptableVersion()
-
-
Method Details
-
jsConstructor
- Overrides:
jsConstructorin classScriptableNode
-
getStaticType
- Overrides:
getStaticTypein classScriptableNode- Returns:
- the static type to use for NativeJavaObject wrapping
-
getClassName
Description copied from interface:SlingWrapperThe name of the JavaScript host object "class".- Specified by:
getClassNamein interfaceorg.mozilla.javascript.Scriptable- Specified by:
getClassNamein interfaceSlingWrapper- Overrides:
getClassNamein classScriptableNode- Returns:
- the class name
-
getWrappedClasses
Description copied from interface:SlingWrapperThe list of Java classes wrapped by this wrapper.- Specified by:
getWrappedClassesin interfaceSlingWrapper- Overrides:
getWrappedClassesin classScriptableNode- Returns:
- the wrapped classes
-
getWrappedObject
- Overrides:
getWrappedObjectin classScriptableNode- Returns:
- the Java object that we're wrapping, used to create a NativeJavaObject instance for default wrapping.
-