Class ScriptableProperty
java.lang.Object
org.mozilla.javascript.ScriptableObject
org.apache.sling.scripting.javascript.wrapper.ScriptableBase
org.apache.sling.scripting.javascript.wrapper.ScriptableProperty
- All Implemented Interfaces:
Serializable
,SlingWrapper
,org.mozilla.javascript.ConstProperties
,org.mozilla.javascript.debug.DebuggableObject
,org.mozilla.javascript.Scriptable
,org.mozilla.javascript.Wrapper
Wrap a JCR Property as a Scriptable
- See Also:
-
Field Summary
Fields inherited from class org.apache.sling.scripting.javascript.wrapper.ScriptableBase
JSFUNC_PREFIX
Fields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
Fields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the JavaScript host object "class".protected Class<?>
int
getType()
Class<?>[]
The list of Java classes wrapped by this wrapper.protected Object
void
jsConstructor
(Object res) jsFunction_valueOf
(String hint) int
long[]
boolean
boolean
toString()
unwrap()
Methods inherited from class org.apache.sling.scripting.javascript.wrapper.ScriptableBase
getNative
Methods 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, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, 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
-
ScriptableProperty
public ScriptableProperty()
-
-
Method Details
-
jsConstructor
-
getClassName
Description copied from interface:SlingWrapper
The name of the JavaScript host object "class".- Specified by:
getClassName
in interfaceorg.mozilla.javascript.Scriptable
- Specified by:
getClassName
in interfaceSlingWrapper
- Specified by:
getClassName
in classorg.mozilla.javascript.ScriptableObject
- Returns:
- the class name
-
getWrappedClasses
Description copied from interface:SlingWrapper
The list of Java classes wrapped by this wrapper.- Specified by:
getWrappedClasses
in interfaceSlingWrapper
- Returns:
- the wrapped classes
-
jsGet_value
-
jsGet_values
-
jsGet_string
-
jsGet_stream
-
jsGet_long
-
jsGet_double
-
jsGet_date
-
jsGet_boolean
-
jsGet_node
-
jsGet_length
-
jsGet_lengths
public long[] jsGet_lengths() -
jsGet_definition
-
getType
public int getType() -
jsGet_session
-
jsGet_path
-
jsGet_name
-
jsGet_parent
-
jsGet_depth
public int jsGet_depth() -
jsGet_new
public boolean jsGet_new() -
jsGet_modified
public boolean jsGet_modified() -
jsFunction_valueOf
-
get
- Specified by:
get
in interfaceorg.mozilla.javascript.Scriptable
- Overrides:
get
in classorg.mozilla.javascript.ScriptableObject
-
jsFunction_toString
-
toString
-
unwrap
- Specified by:
unwrap
in interfaceorg.mozilla.javascript.Wrapper
-
getStaticType
- Specified by:
getStaticType
in classScriptableBase
- Returns:
- the static type to use for NativeJavaObject wrapping
-
getWrappedObject
- Specified by:
getWrappedObject
in classScriptableBase
- Returns:
- the Java object that we're wrapping, used to create a NativeJavaObject instance for default wrapping.
-