|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.string.StringTagSupport
org.apache.taglibs.string.ReplaceTag
public class ReplaceTag
Replace a specified substring with another string. A number of times may be specified to say how many times to replace the substring.
Field Summary |
---|
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
ReplaceTag()
|
Method Summary | |
---|---|
java.lang.String |
changeString(java.lang.String text)
Perform a transformation on the passed in String. |
java.lang.String |
getCarriageToken()
Get the carriageToken property |
java.lang.String |
getCount()
Get the count property |
java.lang.String |
getNewlineToken()
Get the newlineToken property |
java.lang.String |
getReplace()
Get the replace property |
java.lang.String |
getWith()
Get the with property |
void |
initAttributes()
Initialise any properties to default values. |
void |
setCarriageToken(java.lang.String carriageToken)
Set the carriageToken property |
void |
setCount(java.lang.String count)
Set the count property |
void |
setNewlineToken(java.lang.String newlineToken)
Set the newlineToken property |
void |
setReplace(java.lang.String replace)
Set the replace property |
void |
setWith(java.lang.String with)
Set the with property |
Methods inherited from class org.apache.taglibs.string.StringTagSupport |
---|
doEndTag, evaluateString, getVar, setVar |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext, setParent |
Constructor Detail |
---|
public ReplaceTag()
Method Detail |
---|
public java.lang.String getReplace()
public void setReplace(java.lang.String replace)
replace
- String propertypublic java.lang.String getNewlineToken()
public void setNewlineToken(java.lang.String newlineToken)
newlineToken
- String propertypublic java.lang.String getCarriageToken()
public void setCarriageToken(java.lang.String carriageToken)
carriageToken
- String propertypublic java.lang.String getWith()
public void setWith(java.lang.String with)
with
- String propertypublic java.lang.String getCount()
public void setCount(java.lang.String count)
count
- String propertypublic java.lang.String changeString(java.lang.String text) throws javax.servlet.jsp.JspException
StringTagSupport
changeString
in class StringTagSupport
text
- String to be manipulated
javax.servlet.jsp.JspException
public void initAttributes()
StringTagSupport
initAttributes
in class StringTagSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |