public class ScriptableNode extends ScriptableBase implements SlingWrapper
Modifier and Type | Field and Description |
---|---|
static String |
CLASSNAME |
JSFUNC_PREFIX
Constructor and Description |
---|
ScriptableNode() |
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 String CLASSNAME
public void jsConstructor(Object res)
public String getClassName()
SlingWrapper
getClassName
in interface SlingWrapper
getClassName
in interface org.mozilla.javascript.Scriptable
getClassName
in class org.mozilla.javascript.ScriptableObject
public Class<?>[] getWrappedClasses()
SlingWrapper
getWrappedClasses
in interface SlingWrapper
protected Class<?> getStaticType()
getStaticType
in class ScriptableBase
protected Object getWrappedObject()
getWrappedObject
in class ScriptableBase
public Object jsFunction_addNode(String path, String primaryType) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public Object jsFunction_getNode(String path) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public Object jsFunction_getChildren()
public Object jsFunction_getProperties()
public Object jsFunction_getPrimaryItem()
public Object jsFunction_getProperty(String name) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public String jsFunction_getUUID()
public int jsFunction_getIndex()
public Iterator<?> jsFunction_getReferences()
public Object jsFunction_getPrimaryNodeType()
public javax.jcr.nodetype.NodeType[] jsFunction_getMixinNodeTypes()
public Object jsFunction_getDefinition()
public boolean jsFunction_getCheckedOut()
public Object jsFunction_getVersionHistory()
public Object jsFunction_getBaseVersion()
public Object jsFunction_getLock()
public boolean jsFunction_getLocked()
public Object jsFunction_getSession()
public String jsFunction_getPath()
public String jsFunction_getName()
public 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(String path) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public Object get(String name, org.mozilla.javascript.Scriptable start)
get
in interface org.mozilla.javascript.Scriptable
get
in class org.mozilla.javascript.ScriptableObject
public Object[] getIds()
getIds
in interface org.mozilla.javascript.Scriptable
getIds
in class org.mozilla.javascript.ScriptableObject
public Object getDefaultValue(Class typeHint)
getDefaultValue
in interface org.mozilla.javascript.Scriptable
getDefaultValue
in class org.mozilla.javascript.ScriptableObject
public boolean has(String name, org.mozilla.javascript.Scriptable start)
has
in interface org.mozilla.javascript.Scriptable
has
in class org.mozilla.javascript.ScriptableObject
public Object unwrap()
unwrap
in interface org.mozilla.javascript.Wrapper
Copyright © 2017 The Apache Software Foundation. All rights reserved.