org.apache.commons.jelly.tags.bsf
Class ScriptTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.bsf.ScriptTag
All Implemented Interfaces:
org.apache.commons.jelly.LocationAware, org.apache.commons.jelly.Tag

public class ScriptTag
extends org.apache.commons.jelly.TagSupport
implements org.apache.commons.jelly.LocationAware

A tag which evaluates its body using the current scripting language

Version:
$Revision: 155420 $
Author:
James Strachan

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
ScriptTag(org.apache.bsf.BSFEngine engine, org.apache.bsf.BSFManager manager)
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
 int getColumnNumber()
           
 java.lang.String getElementName()
           
 org.apache.bsf.BSFEngine getEngine()
           
 java.lang.String getFileName()
           
 int getLineNumber()
           
 void setColumnNumber(int columnNumber)
          Sets the columnNumber.
 void setElementName(java.lang.String elementName)
          Sets the elementName.
 void setEngine(org.apache.bsf.BSFEngine engine)
          Sets the engine.
 void setFileName(java.lang.String fileName)
          Sets the fileName.
 void setLineNumber(int lineNumber)
          Sets the lineNumber.
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptTag

public ScriptTag(org.apache.bsf.BSFEngine engine,
                 org.apache.bsf.BSFManager manager)
Method Detail

doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.MissingAttributeException,
                  org.apache.commons.jelly.JellyTagException
Specified by:
doTag in interface org.apache.commons.jelly.Tag
Throws:
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException

getColumnNumber

public int getColumnNumber()
Specified by:
getColumnNumber in interface org.apache.commons.jelly.LocationAware
Returns:
int

getElementName

public java.lang.String getElementName()
Specified by:
getElementName in interface org.apache.commons.jelly.LocationAware
Returns:
String

getEngine

public org.apache.bsf.BSFEngine getEngine()
Returns:
BSFEngine

getFileName

public java.lang.String getFileName()
Specified by:
getFileName in interface org.apache.commons.jelly.LocationAware
Returns:
String

getLineNumber

public int getLineNumber()
Specified by:
getLineNumber in interface org.apache.commons.jelly.LocationAware
Returns:
int

setColumnNumber

public void setColumnNumber(int columnNumber)
Sets the columnNumber.

Specified by:
setColumnNumber in interface org.apache.commons.jelly.LocationAware
Parameters:
columnNumber - The columnNumber to set

setElementName

public void setElementName(java.lang.String elementName)
Sets the elementName.

Specified by:
setElementName in interface org.apache.commons.jelly.LocationAware
Parameters:
elementName - The elementName to set

setEngine

public void setEngine(org.apache.bsf.BSFEngine engine)
Sets the engine.

Parameters:
engine - The engine to set

setFileName

public void setFileName(java.lang.String fileName)
Sets the fileName.

Specified by:
setFileName in interface org.apache.commons.jelly.LocationAware
Parameters:
fileName - The fileName to set

setLineNumber

public void setLineNumber(int lineNumber)
Sets the lineNumber.

Specified by:
setLineNumber in interface org.apache.commons.jelly.LocationAware
Parameters:
lineNumber - The lineNumber to set


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.