|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.util.ReplaceTag
A tag that replaces occurrences of a character in its body (or value) and places the result into the context
Field Summary | |
private static org.apache.commons.logging.Log |
log
The Log to which logging calls will be made. |
private java.lang.String |
newChar
the new character that will replace the old |
private java.lang.String |
oldChar
the old character to be replaced |
private org.apache.commons.jelly.expression.Expression |
value
The expression to evaluate. |
private java.lang.String |
var
The variable name to export. |
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
ReplaceTag()
|
Method Summary | |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
java.lang.String |
getNewChar()
Returns the newChar used in replacing. |
java.lang.String |
getOldChar()
Returns the oldChar that will be replaced. |
org.apache.commons.jelly.expression.Expression |
getValue()
Returns the value. |
java.lang.String |
getVar()
Returns the var. |
void |
setNewChar(java.lang.String newChar)
Sets the newChar. |
void |
setOldChar(java.lang.String oldChar)
Sets the oldChar. |
void |
setValue(org.apache.commons.jelly.expression.Expression value)
Sets the value. |
void |
setVar(java.lang.String var)
Sets the var. |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final org.apache.commons.logging.Log log
private java.lang.String var
private org.apache.commons.jelly.expression.Expression value
private java.lang.String oldChar
private java.lang.String newChar
Constructor Detail |
public ReplaceTag()
Method Detail |
public void doTag(org.apache.commons.jelly.XMLOutput output) throws org.apache.commons.jelly.MissingAttributeException, org.apache.commons.jelly.JellyTagException
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException
public java.lang.String getNewChar()
public java.lang.String getOldChar()
public org.apache.commons.jelly.expression.Expression getValue()
public java.lang.String getVar()
public void setNewChar(java.lang.String newChar)
newChar
- The newChar to setpublic void setOldChar(java.lang.String oldChar)
oldChar
- The oldChar to setpublic void setValue(org.apache.commons.jelly.expression.Expression value)
value
- The value to setpublic void setVar(java.lang.String var)
var
- The var to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |