com.ibm.itim.fesiextensions
Class JSHashMapFactory
java.lang.Object
com.ibm.itim.fesiextensions.JSHashMapFactory
- 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
JSMapWrapperFactory instead.
public class JSHashMapFactory
- extends java.lang.Object
- implements JSObjectFactory
This class provides an interface for creating JS objects that represent the
key-value pairs in a hash map. The given key-value pairs are defined as a
named JS object accessible from the scripting environment with an array-like
syntax.
- See Also:
JSMapWrapperFactory
Method Summary |
java.lang.Object |
createJavaObject(java.lang.String name,
FESI.jslib.JSObject o)
Deprecated. Implementation of required method. |
FESI.jslib.JSObject |
createScriptObject(FESI.jslib.JSGlobalObject go,
FESI.jslib.JSObject parent,
java.lang.String name,
java.lang.Object item)
Deprecated. Creates a named HashMap object that can be used in the client's script. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSHashMapFactory
public JSHashMapFactory()
- Deprecated.
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.
- Creates a named HashMap object that can be used in the client's script. This
method differes from setContextItem in that it will translate the given
java object to an object that is compatible with the scripting language
implementation and the result can be used in the client scripts, not
just by the script engine extensions.
- 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 environmentitem
- 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
createJavaObject
public java.lang.Object createJavaObject(java.lang.String name,
FESI.jslib.JSObject o)
- Deprecated.
- Implementation of required method. Will throw an
UnsupportedOperationException if called.
- Specified by:
createJavaObject
in interface JSObjectFactory
- Parameters:
name
- Name of the JavaScript object. Can be empty.o
- JSObject to convert from.
- Returns:
- Java object that represents the JSObject.
- See Also:
JSObjectFactory.createJavaObject(java.lang.String, FESI.jslib.JSObject)
IBM Tivoli Identity Manager 5.1
© Copyright International Business Machines Corporation 2007, 2009. All rightsreserved. US Government Users Restricited RightsUse, duplication or disclosure restricted by GSA ADP ScheduleContract with IBM Corp.