|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.webmacro.ContextTool
org.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 | |
java.lang.Object |
get(java.lang.Object name)
Get the specified object name defined from the active
Context. |
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 org.webmacro.ContextTool |
get |
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 class ContextTool
PropertyException
public boolean isDefined(java.lang.Object name)
name
defined in the active
Context?
public java.lang.Object get(java.lang.Object name)
name
defined from 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 |