org.apache.taglibs.string
Class NestedStringTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.taglibs.string.StringTagSupport
              extended by org.apache.taglibs.string.NestedStringTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class NestedStringTag
extends StringTagSupport

Get a String that is nested between an open and closing substring.

open
Index to start substring at. Required.
close
Index to stop substring before. Default is to be the last index.

Author:
bayard@generationjava.com
See Also:
Serialized Form

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
NestedStringTag()
           
 
Method Summary
 java.lang.String changeString(java.lang.String text)
          Perform a transformation on the passed in String.
 java.lang.String getClose()
          Get the close property
 java.lang.String getOpen()
          Get the open property
 void initAttributes()
          Initialise any properties to default values.
 void setClose(java.lang.String close)
          Set the close property
 void setOpen(java.lang.String open)
          Set the open 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

NestedStringTag

public NestedStringTag()
Method Detail

getOpen

public java.lang.String getOpen()
Get the open property

Returns:
String property

setOpen

public void setOpen(java.lang.String open)
Set the open property

Parameters:
open - String property

getClose

public java.lang.String getClose()
Get the close property

Returns:
String property

setClose

public void setClose(java.lang.String close)
Set the close property

Parameters:
close - String property

changeString

public java.lang.String changeString(java.lang.String text)
                              throws javax.servlet.jsp.JspException
Description copied from class: StringTagSupport
Perform a transformation on the passed in String.

Specified by:
changeString in class StringTagSupport
Parameters:
text - String to be manipulated
Returns:
String result of operation upon passed in String
Throws:
javax.servlet.jsp.JspException

initAttributes

public void initAttributes()
Description copied from class: StringTagSupport
Initialise any properties to default values. This method is called upon construction, and after changeString(String) is called. This is a default empty implementation.

Overrides:
initAttributes in class StringTagSupport


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.