org.experlog.gencode
Class UserObject
java.lang.Object
org.experlog.gencode.UserObject
public class UserObject
- extends java.lang.Object
UserObject is an object to manage Java objects calls. This object is used by
ESDynHtml to create object with :
$NewObject myObject $TypeOfObject([param]*)$
and to call methods on object with :
$Invoke resultObject $myObject.myMethod([param]*)$
Parameters are separated by comma.
Constructor Summary |
UserObject(java.lang.Object obj,
java.lang.String name,
org.apache.log4j.Category logger)
|
UserObject(java.lang.String line,
int lnb,
java.util.Hashtable uObjects,
java.util.Hashtable sObjects,
org.apache.log4j.Category logger)
create a new UserObject, user asks for a new Java object to create |
Method Summary |
void |
close()
|
protected java.lang.String |
getName()
|
protected java.lang.Object |
getObject()
|
protected java.lang.Class |
getObjectClass()
|
protected java.lang.String |
getStringType()
|
java.lang.Object |
invoke(java.lang.String line,
int lnb,
java.util.Hashtable uObjects,
java.util.Hashtable sObjects)
This method returns either an Object, either a ESVectorDataSet (with VALUE flag) |
boolean |
isPersist()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserObject
public UserObject(java.lang.Object obj,
java.lang.String name,
org.apache.log4j.Category logger)
throws java.lang.Exception
- Throws:
java.lang.Exception
UserObject
public UserObject(java.lang.String line,
int lnb,
java.util.Hashtable uObjects,
java.util.Hashtable sObjects,
org.apache.log4j.Category logger)
throws java.lang.Exception
- create a new UserObject, user asks for a new Java object to create
- Parameters:
line
- the line which comes from the templatelnb
- the number of the line in the templateuObjects
- an Hashtable objects which contains all UserObjectssObjects
- an Hashtable objects which contains sessions UserObjects
- Throws:
java.lang.Exception
invoke
public java.lang.Object invoke(java.lang.String line,
int lnb,
java.util.Hashtable uObjects,
java.util.Hashtable sObjects)
throws java.lang.Exception
- This method returns either an Object, either a ESVectorDataSet (with VALUE flag)
- Parameters:
line
- lnb
- uObjects
- sObjects
-
- Returns:
- The result of the method invocation
- Throws:
java.lang.Exception
close
public void close()
getName
protected java.lang.String getName()
getStringType
protected java.lang.String getStringType()
getObjectClass
protected java.lang.Class getObjectClass()
getObject
protected java.lang.Object getObject()
isPersist
public boolean isPersist()