|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.tomp.xtcl.command.AbstractCommand net.sf.tomp.xtcl.command.VarCommand net.sf.tomp.xtcl.command.AbstractParametrizedVarCommand net.sf.tomp.xtcl.command.FilterCommand
public class FilterCommand
Command for loading and initializing a XMLFilter (XTFilter)
Field Summary | |
---|---|
protected java.lang.String |
className
XTCL's XTFilter or SAX's XMLFilter class name |
protected java.util.Map |
params
formal params |
protected java.util.Map |
realParams
real params |
Fields inherited from class net.sf.tomp.xtcl.command.VarCommand |
---|
var |
Constructor Summary | |
---|---|
FilterCommand()
|
Method Summary | |
---|---|
int |
execute(Context context)
Loads and initializes (parametrizes) the filter. |
protected int |
initFilter(XTFilter f,
Context context)
Initializes the filter: Evaluates the parameters, gets the real params and fetches them to the XTFilter. |
void |
setClassName(java.lang.String r)
sets the filter class name |
void |
setParameter(java.lang.String k,
java.lang.Object v)
sets a parameter |
java.lang.String |
toString()
|
Methods inherited from class net.sf.tomp.xtcl.command.AbstractParametrizedVarCommand |
---|
addParameterPropertiesReference, propertiesToParameters |
Methods inherited from class net.sf.tomp.xtcl.command.VarCommand |
---|
setVar |
Methods inherited from class net.sf.tomp.xtcl.command.AbstractCommand |
---|
done, initParameters, listArray, listList, listMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String className
protected java.util.Map params
protected java.util.Map realParams
Constructor Detail |
---|
public FilterCommand()
Method Detail |
---|
public void setParameter(java.lang.String k, java.lang.Object v)
setParameter
in interface Parametrized
setParameter
in class AbstractParametrizedVarCommand
k
- param namev
- param valueParametrized.setParameter(java.lang.String, java.lang.Object)
public void setClassName(java.lang.String r)
r
- filter class namepublic int execute(Context context) throws java.lang.Exception
execute
in interface Command
execute
in class AbstractCommand
context
-
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
protected int initFilter(XTFilter f, Context context)
f
- the filter to be initializedcontext
- Context to evaluate the params
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |