Class ScriptableVersion

  • All Implemented Interfaces:
    java.io.Serializable, SlingWrapper, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable, org.mozilla.javascript.Wrapper

    public class ScriptableVersion
    extends ScriptableNode
    Scriptable wrapper for the JCR Version class
    See Also:
    Serialized Form
    • Constructor Detail

      • ScriptableVersion

        public ScriptableVersion()
    • Method Detail

      • getStaticType

        protected java.lang.Class<?> getStaticType()
        Overrides:
        getStaticType in class ScriptableNode
        Returns:
        the static type to use for NativeJavaObject wrapping
      • getClassName

        public java.lang.String getClassName()
        Description copied from interface: SlingWrapper
        The name of the JavaScript host object "class".
        Specified by:
        getClassName in interface org.mozilla.javascript.Scriptable
        Specified by:
        getClassName in interface SlingWrapper
        Overrides:
        getClassName in class ScriptableNode
        Returns:
        the class name
      • getWrappedObject

        protected java.lang.Object getWrappedObject()
        Overrides:
        getWrappedObject in class ScriptableNode
        Returns:
        the Java object that we're wrapping, used to create a NativeJavaObject instance for default wrapping.