Class CollectionHostObject

java.lang.Object
org.mozilla.javascript.ScriptableObject
org.wso2.carbon.mashup.javascript.hostobjects.registry.ResourceHostObject
org.wso2.carbon.mashup.javascript.hostobjects.registry.CollectionHostObject
All Implemented Interfaces:
Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable

public class CollectionHostObject extends ResourceHostObject

This is a JavaScript Rhino host object aimed to provide a javascript mapping for a registry Collection object to the javascript service developers.

See Also:
  • Field Summary

    Fields inherited from class org.wso2.carbon.mashup.javascript.hostobjects.registry.ResourceHostObject

    context, resource

    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

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    CollectionHostObject(org.wso2.carbon.registry.core.Resource resource, org.mozilla.javascript.Context cx)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Type to be used for this object inside the javascript.
    protected org.wso2.carbon.registry.core.Resource
     
    static org.mozilla.javascript.Scriptable
    jsConstructor(org.mozilla.javascript.Context cx, Object[] args, org.mozilla.javascript.Function ctorObj, boolean inNewExpr)
     
    static void
    jsFunction_addProperty(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj)
     
    static void
    jsFunction_editPropertyValue(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj)
     
    static org.mozilla.javascript.NativeArray
    jsFunction_getChildren(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj)
     
    static org.mozilla.javascript.NativeArray
    jsFunction_getProperties(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj)
     
    static String
    jsFunction_getProperty(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj)
     
    static org.mozilla.javascript.NativeArray
    jsFunction_getPropertyValues(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj)
     
    static void
    jsFunction_removeProperty(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj)
     
    static void
    jsFunction_removePropertyValue(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj)
     
    static void
    jsFunction_setProperty(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj)
     
     
    int
     
     
    org.mozilla.javascript.Scriptable
     
     
     
    org.mozilla.javascript.Scriptable
     
     
     
     
     
     
    int
     
    void
     
    void
     
    void
     

    Methods inherited from class org.mozilla.javascript.ScriptableObject

    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, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, 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, setGetterOrSetter, setParentScope, setPrototype, size

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CollectionHostObject

      protected CollectionHostObject(org.wso2.carbon.registry.core.Resource resource, org.mozilla.javascript.Context cx)
    • CollectionHostObject

      public CollectionHostObject()
  • Method Details

    • jsConstructor

      public static org.mozilla.javascript.Scriptable jsConstructor(org.mozilla.javascript.Context cx, Object[] args, org.mozilla.javascript.Function ctorObj, boolean inNewExpr) throws org.wso2.carbon.CarbonException
      Throws:
      org.wso2.carbon.CarbonException
    • getClassName

      public String getClassName()
      Type to be used for this object inside the javascript.
      Specified by:
      getClassName in interface org.mozilla.javascript.Scriptable
      Overrides:
      getClassName in class ResourceHostObject
    • jsFunction_addProperty

      public static void jsFunction_addProperty(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj) throws org.wso2.carbon.CarbonException
      Throws:
      org.wso2.carbon.CarbonException
    • jsFunction_getProperty

      public static String jsFunction_getProperty(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj) throws org.wso2.carbon.CarbonException
      Throws:
      org.wso2.carbon.CarbonException
    • jsFunction_getPropertyValues

      public static org.mozilla.javascript.NativeArray jsFunction_getPropertyValues(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj) throws org.wso2.carbon.CarbonException
      Throws:
      org.wso2.carbon.CarbonException
    • jsFunction_getProperties

      public static org.mozilla.javascript.NativeArray jsFunction_getProperties(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj) throws org.wso2.carbon.CarbonException
      Throws:
      org.wso2.carbon.CarbonException
    • jsFunction_editPropertyValue

      public static void jsFunction_editPropertyValue(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj) throws org.wso2.carbon.CarbonException
      Throws:
      org.wso2.carbon.CarbonException
    • jsFunction_removeProperty

      public static void jsFunction_removeProperty(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj) throws org.wso2.carbon.CarbonException
      Throws:
      org.wso2.carbon.CarbonException
    • jsFunction_removePropertyValue

      public static void jsFunction_removePropertyValue(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj) throws org.wso2.carbon.CarbonException
      Throws:
      org.wso2.carbon.CarbonException
    • jsFunction_setProperty

      public static void jsFunction_setProperty(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj) throws org.wso2.carbon.CarbonException
      Throws:
      org.wso2.carbon.CarbonException
    • jsFunction_getChildren

      public static org.mozilla.javascript.NativeArray jsFunction_getChildren(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj) throws org.wso2.carbon.CarbonException
      Throws:
      org.wso2.carbon.CarbonException
    • jsGet_childCount

      public int jsGet_childCount() throws org.wso2.carbon.CarbonException
      Throws:
      org.wso2.carbon.CarbonException
    • jsGet_author

      public String jsGet_author()
      Overrides:
      jsGet_author in class ResourceHostObject
    • jsGet_lastUpdatedUser

      public String jsGet_lastUpdatedUser()
      Overrides:
      jsGet_lastUpdatedUser in class ResourceHostObject
    • jsGet_createdTime

      public org.mozilla.javascript.Scriptable jsGet_createdTime()
      Overrides:
      jsGet_createdTime in class ResourceHostObject
    • jsGet_lastUpdatedTime

      public org.mozilla.javascript.Scriptable jsGet_lastUpdatedTime()
      Overrides:
      jsGet_lastUpdatedTime in class ResourceHostObject
    • jsGet_id

      public String jsGet_id()
      Overrides:
      jsGet_id in class ResourceHostObject
    • jsGet_parentPath

      public String jsGet_parentPath()
      Overrides:
      jsGet_parentPath in class ResourceHostObject
    • jsGet_path

      public String jsGet_path()
      Overrides:
      jsGet_path in class ResourceHostObject
    • jsGet_permanentPath

      public String jsGet_permanentPath()
      Overrides:
      jsGet_permanentPath in class ResourceHostObject
    • jsGet_state

      public int jsGet_state()
      Overrides:
      jsGet_state in class ResourceHostObject
    • jsGet_mediaType

      public String jsGet_mediaType()
      Overrides:
      jsGet_mediaType in class ResourceHostObject
    • jsSet_mediaType

      public void jsSet_mediaType(Object mediaType) throws org.wso2.carbon.CarbonException
      Overrides:
      jsSet_mediaType in class ResourceHostObject
      Throws:
      org.wso2.carbon.CarbonException
    • jsGet_content

      public Object jsGet_content() throws org.wso2.carbon.CarbonException
      Overrides:
      jsGet_content in class ResourceHostObject
      Throws:
      org.wso2.carbon.CarbonException
    • jsSet_content

      public void jsSet_content(Object content) throws org.wso2.carbon.CarbonException
      Overrides:
      jsSet_content in class ResourceHostObject
      Throws:
      org.wso2.carbon.CarbonException
    • jsGet_description

      public String jsGet_description()
      Overrides:
      jsGet_description in class ResourceHostObject
    • jsSet_description

      public void jsSet_description(Object description) throws org.wso2.carbon.CarbonException
      Overrides:
      jsSet_description in class ResourceHostObject
      Throws:
      org.wso2.carbon.CarbonException
    • getResource

      protected org.wso2.carbon.registry.core.Resource getResource()
      Overrides:
      getResource in class ResourceHostObject