org.apache.commons.jelly.tags.log
Class LogTagSupport

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.apache.commons.jelly.tags.log.LogTagSupport
All Implemented Interfaces:
org.apache.commons.jelly.Tag
Direct Known Subclasses:
DebugTag, ErrorTag, FatalTag, InfoTag, TraceTag, WarnTag

public abstract class LogTagSupport
extends org.apache.commons.jelly.TagSupport

An abstract base class for any logging tag..

Version:
$Revision: 1.5 $
Author:
James Strachan

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
LogTagSupport()
           
 
Method Summary
 org.apache.commons.logging.Log getLog()
           
 boolean isEncode()
          Returns whether the body of this tag will be XML encoded or not.
 void setEncode(boolean encode)
          Sets whether the body of the tag should be encoded as text (so that < and > are encoded as &lt; and &gt;) or leave the text as XML which is the default.
 void setLog(org.apache.commons.logging.Log log)
          Sets the Log instance to use for logging.
 void setName(java.lang.String name)
          Sets the name of the logger to use
 
Methods inherited from class org.apache.commons.jelly.TagSupport
doTag, 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

LogTagSupport

public LogTagSupport()
Method Detail

getLog

public org.apache.commons.logging.Log getLog()
Returns:
the Log being used by this tag. If none is returned then a new one will be created.

setName

public void setName(java.lang.String name)
Sets the name of the logger to use

setLog

public void setLog(org.apache.commons.logging.Log log)
Sets the Log instance to use for logging.

isEncode

public boolean isEncode()
Returns whether the body of this tag will be XML encoded or not.

setEncode

public void setEncode(boolean encode)
Sets whether the body of the tag should be encoded as text (so that < and > are encoded as &lt; and &gt;) or leave the text as XML which is the default.


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