net.sf.tomp.xtcl.command
Class Style
java.lang.Object
net.sf.tomp.xtcl.command.AbstractCommand
net.sf.tomp.xtcl.command.VarCommand
net.sf.tomp.xtcl.command.Style
- All Implemented Interfaces:
- Command
public class Style
- extends VarCommand
DOCUMENT ME!
- Author:
- tomp
Field Summary |
protected java.lang.String |
styleRef
DOCUMENT ME! |
protected javax.xml.transform.Templates |
templates
DOCUMENT ME! |
Fields inherited from class net.sf.tomp.xtcl.command.VarCommand |
var |
Constructor Summary |
Style()
|
Method Summary |
int |
execute(Context context)
creates Templates and puts it to Context
styleRef may start with $ (lookup of var in Context)
or otherwise it means a filename |
void |
setStyleRef(java.lang.String s)
DOCUMENT ME! |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
styleRef
protected java.lang.String styleRef
- DOCUMENT ME!
templates
protected javax.xml.transform.Templates templates
- DOCUMENT ME!
Style
public Style()
setStyleRef
public void setStyleRef(java.lang.String s)
- DOCUMENT ME!
- Parameters:
s
- DOCUMENT ME!
execute
public int execute(Context context)
throws java.lang.Exception
- creates Templates and puts it to Context
styleRef may start with $ (lookup of var in Context)
or otherwise it means a filename
- Specified by:
execute
in interface Command
- Overrides:
execute
in class AbstractCommand
- Parameters:
context
- DOCUMENT ME!
- Returns:
- DOCUMENT ME!
- Throws:
java.lang.Exception
- DOCUMENT ME!
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- Returns:
- "STYLE " + var + " <- " + styleRef;
Copyright © 2004-2005 Masaryk University in Brno, Faculty of Informatics, Czech Republic. All Rights Reserved.