com.ibm.itim.fesiextensions

Class JSListObjectFactory

  • java.lang.Object
    • com.ibm.itim.fesiextensions.JSListObjectFactory
  • All Implemented Interfaces:
    JSObjectFactory

    Deprecated. 
    This class is part of the FESI script framework and will no longer be supported or updated as of ITIM 5.0. Use JSCollectionWrapperFactory instead.

    public class JSListObjectFactory
    extends java.lang.Object
    implements JSObjectFactory
    This class provides an interface for creating JS objects that represent java.util.List objects.
    See Also:
    JSCollectionWrapperFactory
    • Constructor Summary

      Constructors 
      Constructor and Description
      JSListObjectFactory()
      Deprecated. 
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      java.lang.Object createJavaObject(java.lang.String name, FESI.jslib.JSObject o)
      Deprecated. 
      Implementation of required method.
      java.lang.Object createObjectWrapper(java.lang.Object item)
      Deprecated. 
      Create a script wrapper object from a Java object {{TODO}}This method should be added to the JSObjectFactory interface so that all factory object knows how to create a wrapper for a Java object
      FESI.jslib.JSObject createScriptObject(FESI.jslib.JSGlobalObject go, FESI.jslib.JSObject parent, java.lang.String name, java.lang.Object item)
      Deprecated. 
      Create a script object with specified name from a Java object
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JSListObjectFactory

        public JSListObjectFactory()
        Deprecated. 
    • Method Detail

      • createScriptObject

        public FESI.jslib.JSObject createScriptObject(FESI.jslib.JSGlobalObject go,
                                                      FESI.jslib.JSObject parent,
                                                      java.lang.String name,
                                                      java.lang.Object item)
                                               throws FESI.jslib.JSException
        Deprecated. 
        Create a script object with specified name from a Java object
        Specified by:
        createScriptObject in interface JSObjectFactory
        Parameters:
        go - JSGlobalObject as calling context.
        parent - JSObject to be registered as a member of. Same as go if global.
        name - Name of the object in the scripting environment
        item - HashMap object that will be made available as a script object
        Returns:
        JSObject representing the given object.
        Throws:
        FESI.jslib.JSException - when the object can not be converted into a format that can be used within the script environment
      • createObjectWrapper

        public java.lang.Object createObjectWrapper(java.lang.Object item)
        Deprecated. 
        Create a script wrapper object from a Java object {{TODO}}This method should be added to the JSObjectFactory interface so that all factory object knows how to create a wrapper for a Java object
        Parameters:
        item -
        Returns:
        Wrapped script object