|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.webmacro.servlet.VariableTool
A ContextTool which allows one to snoop information about an object in the active Context.
Constructor Summary | |
VariableTool()
|
|
VariableTool(Context newContext)
|
Method Summary | |
void |
destroy(java.lang.Object o)
At the end of processing this method will be called to return the object generated by init(), in case it needs to be recycled or otherwise cleaned up. |
java.lang.Object |
init(Context c)
A new tool object will be instantiated per-request by calling this method. |
boolean |
isDefined(java.lang.Object name)
Is the specified object name defined in the active
Context? |
boolean |
isInstanceOf(java.lang.Object obj,
java.lang.String className)
Is the specified object, obj , an instance of the
specified className ? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VariableTool()
public VariableTool(Context newContext)
Method Detail |
public java.lang.Object init(Context c) throws PropertyException
ContextTool
init
in interface ContextTool
PropertyException
public void destroy(java.lang.Object o)
ContextTool
destroy
in interface ContextTool
public boolean isDefined(java.lang.Object name)
name
defined in the active
Context?
public boolean isInstanceOf(java.lang.Object obj, java.lang.String className)
obj
, an instance of the
specified className
?
If either parameter is null
this method returns false.
If className
cannot be found, this method returns false.
obj
- an Object from your template ContextclassName
- the fully-qualified class name to check
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |