| java.lang.Object org.apache.commons.jelly.TagSupport
All known Subclasses: org.apache.commons.jelly.tags.core.ExprTag, org.apache.commons.jelly.tags.core.InvokeTag, org.apache.commons.jelly.tags.core.ImportTag, org.apache.commons.jelly.tags.core.FileTag, org.apache.commons.jelly.tags.core.WhenTag, org.apache.commons.jelly.tags.core.GetStaticTag, org.apache.commons.jelly.tags.core.ParseTag, org.apache.commons.jelly.tags.core.DefaultTag, org.apache.commons.jelly.tags.core.BreakTag, org.apache.commons.jelly.DynaTagSupport, org.apache.commons.jelly.tags.core.RemoveTag, org.apache.commons.jelly.tags.junit.SuiteTag, org.apache.commons.jelly.tags.core.OtherwiseTag, org.apache.commons.jelly.tags.core.SwitchTag, org.apache.commons.jelly.test.impl.DummyTag, org.apache.commons.jelly.tags.junit.RunTag, org.apache.commons.jelly.tags.core.SetTag, org.apache.commons.jelly.tags.core.BaseClassLoaderTag, org.apache.commons.jelly.tags.core.WhileTag, org.apache.commons.jelly.tags.core.ChooseTag, org.apache.commons.jelly.tags.junit.CaseTag, org.apache.commons.jelly.tags.core.JellyTag, org.apache.commons.jelly.xpath.XPathTagSupport, org.apache.commons.jelly.tags.core.ThreadTag, org.apache.commons.jelly.tags.core.CaseTag, org.apache.commons.jelly.tags.core.InvokeStaticTag, org.apache.commons.jelly.tags.core.MuteTag, org.apache.commons.jelly.tags.core.CatchTag, org.apache.commons.jelly.tags.core.ForEachTag, org.apache.commons.jelly.tags.core.ScopeTag, org.apache.commons.jelly.tags.core.WhitespaceTag, org.apache.commons.jelly.tags.core.IncludeTag, org.apache.commons.jelly.tags.core.IfTag,
TagSupport | abstract public class TagSupport implements Tag(Code) | | TagSupport an abstract base class which is useful to
inherit from if developing your own tag.
author: James Strachan version: $Revision: 155420 $ |
hasTrimmed | protected boolean hasTrimmed(Code) | | |
parent | protected Tag parent(Code) | | the parent of this tag
|
TagSupport | public TagSupport()(Code) | | |
TagSupport | public TagSupport(boolean shouldTrim)(Code) | | |
findAncestorWithClass | public static Tag findAncestorWithClass(Tag from, Class tagClass)(Code) | | Searches up the parent hierarchy from the given tag
for a Tag of the given type
Parameters: from - the tag to start searching from Parameters: tagClass - the type of the tag to find the tag of the given type or null if it could not be found |
findAncestorWithClass | public static Tag findAncestorWithClass(Tag from, Collection tagClasses)(Code) | | Searches up the parent hierarchy from the given tag
for a Tag matching one or more of given types.
Parameters: from - the tag to start searching from Parameters: tagClasses - a Collection of Class types that might match the tag of the given type or null if it could not be found |
findAncestorWithClass | public static Tag findAncestorWithClass(Tag from, Class[] tagClasses)(Code) | | Searches up the parent hierarchy from the given tag
for a Tag matching one or more of given types.
Parameters: from - the tag to start searching from Parameters: tagClasses - an array of types that might match the tag of the given type or null if it could not be found See Also: TagSupport.findAncestorWithClass(Tag,Collection) |
findAncestorWithClass | protected Tag findAncestorWithClass(Class parentClass)(Code) | | Searches up the parent hierarchy for a Tag of the given type.
the tag of the given type or null if it could not be found |
findAncestorWithClass | protected Tag findAncestorWithClass(Collection parentClasses)(Code) | | Searches up the parent hierarchy for a Tag of one of the given types.
the tag of the given type or null if it could not be found |
getBodyText | protected String getBodyText() throws JellyTagException(Code) | | Executes the body of the tag and returns the result as a String.
the text evaluation of the body |
getBodyText | protected String getBodyText(boolean shouldEscape) throws JellyTagException(Code) | | Executes the body of the tag and returns the result as a String.
Parameters: shouldEscape - Signal if the text should be escaped. the text evaluation of the body |
getParent | public Tag getParent()(Code) | | the parent of this tag |
isEscapeText | public boolean isEscapeText()(Code) | | Returns whether the body of this tag will be escaped or not.
|
isTrim | public boolean isTrim()(Code) | | |
setBody | public void setBody(Script body)(Code) | | Sets the body of the tag
|
setEscapeText | public void setEscapeText(boolean escapeText)(Code) | | Sets whether the body of the tag should be escaped as text (so that < and > are
escaped as < and >), which is the default or leave the text as XML.
|
setParent | public void setParent(Tag parent)(Code) | | Sets the parent of this tag
|
setTrim | public void setTrim(boolean shouldTrim)(Code) | | Sets whether whitespace inside this tag should be trimmed or not.
Defaults to true so whitespace is trimmed
|
trimBody | protected void trimBody()(Code) | | Find all text nodes inside the top level of this body and
if they are just whitespace then remove them
|
|
|