Java Doc for TagSupport.java in  » Library » Apache-commons-jelly-1.0-src » org » apache » commons » jelly » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Library » Apache commons jelly 1.0 src » org.apache.commons.jelly 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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 $


Field Summary
protected  Scriptbody
    
protected  JellyContextcontext
    
protected  booleanhasTrimmed
    
protected  Tagparent
    
protected  BooleanshouldTrim
    

Constructor Summary
public  TagSupport()
    
public  TagSupport(boolean shouldTrim)
    

Method Summary
public static  TagfindAncestorWithClass(Tag from, Class tagClass)
    
public static  TagfindAncestorWithClass(Tag from, Collection tagClasses)
     Searches up the parent hierarchy from the given tag for a Tag matching one or more of given types.
public static  TagfindAncestorWithClass(Tag from, Class[] tagClasses)
     Searches up the parent hierarchy from the given tag for a Tag matching one or more of given types.
protected  TagfindAncestorWithClass(Class parentClass)
     Searches up the parent hierarchy for a Tag of the given type.
protected  TagfindAncestorWithClass(Class[] parentClasses)
     Searches up the parent hierarchy for a Tag of one of the given types.
protected  TagfindAncestorWithClass(Collection parentClasses)
     Searches up the parent hierarchy for a Tag of one of the given types.
public  ScriptgetBody()
    
protected  StringgetBodyText()
     Executes the body of the tag and returns the result as a String.
protected  StringgetBodyText(boolean shouldEscape)
     Executes the body of the tag and returns the result as a String.
Parameters:
  shouldEscape - Signal if the text should be escaped.
public  JellyContextgetContext()
    
public  TaggetParent()
    
public  voidinvokeBody(XMLOutput output)
    
public  booleanisEscapeText()
     Returns whether the body of this tag will be escaped or not.
public  booleanisTrim()
    
public  voidsetBody(Script body)
    
public  voidsetContext(JellyContext context)
    
public  voidsetEscapeText(boolean escapeText)
     Sets whether the body of the tag should be escaped as text (so that < and > are escaped as &lt; and &gt;), which is the default or leave the text as XML.
public  voidsetParent(Tag parent)
    
public  voidsetTrim(boolean shouldTrim)
     Sets whether whitespace inside this tag should be trimmed or not.
protected  voidtrimBody()
    

Field Detail
body
protected Script body(Code)
the body of the tag



context
protected JellyContext context(Code)



hasTrimmed
protected boolean hasTrimmed(Code)



parent
protected Tag parent(Code)
the parent of this tag



shouldTrim
protected Boolean shouldTrim(Code)
The current context




Constructor Detail
TagSupport
public TagSupport()(Code)



TagSupport
public TagSupport(boolean shouldTrim)(Code)




Method Detail
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(Class[] 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
See Also:   TagSupport.findAncestorWithClass(Collection)



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



getBody
public Script getBody()(Code)
the body of the tag



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



getContext
public JellyContext getContext()(Code)
the context in which the tag will be run



getParent
public Tag getParent()(Code)
the parent of this tag



invokeBody
public void invokeBody(XMLOutput output) throws JellyTagException(Code)
Invokes the body of this tag using the given output



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



setContext
public void setContext(JellyContext context) throws JellyTagException(Code)
Sets the context in which the tag will be run



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 &lt; and &gt;), 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



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.