public class ScriptableNode extends ScriptableBase implements SlingWrapper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME |
JSFUNC_PREFIX
Constructor and Description |
---|
ScriptableNode() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.String name,
org.mozilla.javascript.Scriptable start)
Gets the value of a (Javascript) property or child node.
|
java.lang.String |
getClassName()
The name of the JavaScript host object "class".
|
java.lang.Object |
getDefaultValue(java.lang.Class typeHint) |
java.lang.Object[] |
getIds() |
protected java.lang.Class<?> |
getStaticType() |
java.lang.Class<?>[] |
getWrappedClasses()
The list of Java classes wrapped by this wrapper.
|
protected java.lang.Object |
getWrappedObject() |
boolean |
has(java.lang.String name,
org.mozilla.javascript.Scriptable start) |
void |
jsConstructor(java.lang.Object res) |
java.lang.Object |
jsFunction_addNode(java.lang.String path,
java.lang.String primaryType) |
java.lang.Object |
jsFunction_getBaseVersion() |
boolean |
jsFunction_getCheckedOut() |
java.lang.Object |
jsFunction_getChildren() |
java.lang.Object |
jsFunction_getDefinition() |
int |
jsFunction_getDepth() |
int |
jsFunction_getIndex() |
java.lang.Object |
jsFunction_getLock() |
boolean |
jsFunction_getLocked() |
javax.jcr.nodetype.NodeType[] |
jsFunction_getMixinNodeTypes() |
boolean |
jsFunction_getModified() |
java.lang.String |
jsFunction_getName() |
boolean |
jsFunction_getNew() |
java.lang.Object |
jsFunction_getNode(java.lang.String path) |
java.lang.Object |
jsFunction_getNodes(java.lang.String namePattern) |
java.lang.Object |
jsFunction_getParent() |
java.lang.String |
jsFunction_getPath() |
java.lang.Object |
jsFunction_getPrimaryItem() |
java.lang.Object |
jsFunction_getPrimaryNodeType() |
java.lang.Object |
jsFunction_getProperties() |
java.lang.Object |
jsFunction_getProperty(java.lang.String name) |
java.util.Iterator<?> |
jsFunction_getReferences() |
java.lang.Object |
jsFunction_getSession() |
java.lang.String |
jsFunction_getUUID() |
java.lang.Object |
jsFunction_getVersionHistory() |
boolean |
jsFunction_hasNode(java.lang.String path) |
void |
jsFunction_remove() |
java.lang.String |
toString() |
java.lang.Object |
unwrap() |
getNative
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
public static final java.lang.String CLASSNAME
public void jsConstructor(java.lang.Object res)
public java.lang.String getClassName()
SlingWrapper
getClassName
in interface SlingWrapper
getClassName
in interface org.mozilla.javascript.Scriptable
getClassName
in class org.mozilla.javascript.ScriptableObject
public java.lang.Class<?>[] getWrappedClasses()
SlingWrapper
getWrappedClasses
in interface SlingWrapper
protected java.lang.Class<?> getStaticType()
getStaticType
in class ScriptableBase
protected java.lang.Object getWrappedObject()
getWrappedObject
in class ScriptableBase
public java.lang.Object jsFunction_addNode(java.lang.String path, java.lang.String primaryType) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public java.lang.Object jsFunction_getNode(java.lang.String path) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public java.lang.Object jsFunction_getChildren()
public java.lang.Object jsFunction_getNodes(java.lang.String namePattern)
public java.lang.Object jsFunction_getProperties()
public java.lang.Object jsFunction_getPrimaryItem()
public java.lang.Object jsFunction_getProperty(java.lang.String name) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public java.lang.String jsFunction_getUUID()
public int jsFunction_getIndex()
public java.util.Iterator<?> jsFunction_getReferences()
public java.lang.Object jsFunction_getPrimaryNodeType()
public javax.jcr.nodetype.NodeType[] jsFunction_getMixinNodeTypes()
public java.lang.Object jsFunction_getDefinition()
public boolean jsFunction_getCheckedOut()
public java.lang.Object jsFunction_getVersionHistory()
public java.lang.Object jsFunction_getBaseVersion()
public java.lang.Object jsFunction_getLock()
public boolean jsFunction_getLocked()
public java.lang.Object jsFunction_getSession()
public java.lang.String jsFunction_getPath()
public java.lang.String jsFunction_getName()
public java.lang.Object jsFunction_getParent()
public int jsFunction_getDepth()
public boolean jsFunction_getNew()
public boolean jsFunction_getModified()
public void jsFunction_remove() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public boolean jsFunction_hasNode(java.lang.String path) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public java.lang.Object get(java.lang.String name, org.mozilla.javascript.Scriptable start)
get
in interface org.mozilla.javascript.Scriptable
get
in class org.mozilla.javascript.ScriptableObject
public java.lang.Object[] getIds()
getIds
in interface org.mozilla.javascript.Scriptable
getIds
in class org.mozilla.javascript.ScriptableObject
public java.lang.Object getDefaultValue(java.lang.Class typeHint)
getDefaultValue
in interface org.mozilla.javascript.Scriptable
getDefaultValue
in class org.mozilla.javascript.ScriptableObject
public boolean has(java.lang.String name, org.mozilla.javascript.Scriptable start)
has
in interface org.mozilla.javascript.Scriptable
has
in class org.mozilla.javascript.ScriptableObject
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object unwrap()
unwrap
in interface org.mozilla.javascript.Wrapper
Copyright © 2018 The Apache Software Foundation. All rights reserved.