net.sf.tomp.xtcl.command
Class SAXSourceCommand

java.lang.Object
  extended by net.sf.tomp.xtcl.command.AbstractCommand
      extended by net.sf.tomp.xtcl.command.VarCommand
          extended by net.sf.tomp.xtcl.command.AbstractParametrizedVarCommand
              extended by net.sf.tomp.xtcl.command.SAXSourceCommand
All Implemented Interfaces:
Parametrized, Command, ParametrizedCommand

public class SAXSourceCommand
extends AbstractParametrizedVarCommand

Creates SAXSource or XTSAXSource by class name.

Author:
tomp

Field Summary
protected  java.lang.String className
          SAXSource or XTSAXSource class name
protected  java.lang.String inputSourceRef
          reference to create InputSource
protected  java.util.Map params
          formal parameters
protected  java.util.Map realParams
          real parameters
 
Fields inherited from class net.sf.tomp.xtcl.command.VarCommand
var
 
Constructor Summary
SAXSourceCommand()
           
 
Method Summary
 int execute(Context context)
          Creates SAXSource or XTSAXSource by class name.
 void setClassName(java.lang.String r)
          set (XT)SAXSource class name
 void setInputSource(java.lang.String r)
          set InputSource reference
 void setParameter(java.lang.String k, java.lang.Object v)
          set 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

className

protected java.lang.String className
SAXSource or XTSAXSource class name


inputSourceRef

protected java.lang.String inputSourceRef
reference to create InputSource


params

protected java.util.Map params
formal parameters


realParams

protected java.util.Map realParams
real parameters

Constructor Detail

SAXSourceCommand

public SAXSourceCommand()
Method Detail

setClassName

public void setClassName(java.lang.String r)
set (XT)SAXSource class name

Parameters:
r - (XT)SAXSource class name

setInputSource

public void setInputSource(java.lang.String r)
set InputSource reference

Parameters:
r - InputSource reference

setParameter

public void setParameter(java.lang.String k,
                         java.lang.Object v)
set parameter

Specified by:
setParameter in interface Parametrized
Specified by:
setParameter in class AbstractParametrizedVarCommand
Parameters:
k - name
v - value
See Also:
Parametrized.setParameter(java.lang.String, java.lang.Object)

execute

public int execute(Context context)
            throws java.lang.Exception
Creates SAXSource or XTSAXSource by class name.

Specified by:
execute in interface Command
Overrides:
execute in class AbstractCommand
Parameters:
context - Context this command will be executed in.
Returns:
always 0 == success, OK
Throws:
java.lang.Exception - only if I/O error occurs when reporting the result to user.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
"SAXSOURCE " + var + "=" + className + " reading from '" + inputSourceRef + "' (" + listMap(params) + ")";


Copyright © 2004-2005 Masaryk University in Brno, Faculty of Informatics, Czech Republic. All Rights Reserved.