Java Doc for SetTag.java in  » Library » Apache-commons-jelly-1.0-src » org » apache » commons » jelly » tags » core » 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.tags.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.commons.jelly.TagSupport
      org.apache.commons.jelly.tags.core.SetTag

SetTag
public class SetTag extends TagSupport (Code)
A tag which sets a variable from the result of an expression
author:
   James Strachan
version:
   $Revision: 155420 $



Constructor Summary
public  SetTag()
    

Method Summary
public  voiddoTag(XMLOutput output)
    
protected  booleanisEmpty(Object value)
    
public  booleanisEncode()
     Returns whether the body of this tag will be XML encoded or not.
public  voidsetDefaultValue(Expression defaultValue)
    
public  voidsetEncode(boolean encode)
     Sets whether the body of the tag should be XML encoded as text (so that < and > are encoded as &lt; and &gt;) or leave the text as XML which is the default.
public  voidsetProperty(String property)
     Sets the name of the property to set on the target object.
protected  voidsetPropertyValue(Object target, String property, Object value)
    
public  voidsetScope(String scope)
     Sets the variable scope for this variable.
public  voidsetTarget(Object target)
     Sets the target object on which to set a property.
public  voidsetValue(Expression value)
     Sets the expression to evaluate.
public  voidsetVar(String var)
    


Constructor Detail
SetTag
public SetTag()(Code)




Method Detail
doTag
public void doTag(XMLOutput output) throws JellyTagException(Code)



isEmpty
protected boolean isEmpty(Object value)(Code)

Parameters:
  value - true if the given value is null or an empty String



isEncode
public boolean isEncode()(Code)
Returns whether the body of this tag will be XML encoded or not.



setDefaultValue
public void setDefaultValue(Expression defaultValue)(Code)
Sets the default value to be used if the value exprsesion results in a null value or blank String



setEncode
public void setEncode(boolean encode)(Code)
Sets whether the body of the tag should be XML encoded as text (so that < and > are encoded as &lt; and &gt;) or leave the text as XML which is the default. This is only used if this tag is specified with no value so that the text body of this tag is used as the body.



setProperty
public void setProperty(String property)(Code)
Sets the name of the property to set on the target object.



setPropertyValue
protected void setPropertyValue(Object target, String property, Object value)(Code)



setScope
public void setScope(String scope)(Code)
Sets the variable scope for this variable. For example setting this value to 'parent' will set this value in the parent scope. When Jelly is run from inside a Servlet environment then other scopes will be available such as 'request', 'session' or 'application'. Other applications may implement their own custom scopes.



setTarget
public void setTarget(Object target)(Code)
Sets the target object on which to set a property.



setValue
public void setValue(Expression value)(Code)
Sets the expression to evaluate.



setVar
public void setVar(String var)(Code)
Sets the variable name to define for this expression



Fields inherited from org.apache.commons.jelly.TagSupport
protected Script body(Code)(Java Doc)
protected JellyContext context(Code)(Java Doc)
protected boolean hasTrimmed(Code)(Java Doc)
protected Tag parent(Code)(Java Doc)
protected Boolean shouldTrim(Code)(Java Doc)

Methods inherited from org.apache.commons.jelly.TagSupport
public static Tag findAncestorWithClass(Tag from, Class tagClass)(Code)(Java Doc)
public static Tag findAncestorWithClass(Tag from, Collection tagClasses)(Code)(Java Doc)
public static Tag findAncestorWithClass(Tag from, Class[] tagClasses)(Code)(Java Doc)
protected Tag findAncestorWithClass(Class parentClass)(Code)(Java Doc)
protected Tag findAncestorWithClass(Class[] parentClasses)(Code)(Java Doc)
protected Tag findAncestorWithClass(Collection parentClasses)(Code)(Java Doc)
public Script getBody()(Code)(Java Doc)
protected String getBodyText() throws JellyTagException(Code)(Java Doc)
protected String getBodyText(boolean shouldEscape) throws JellyTagException(Code)(Java Doc)
public JellyContext getContext()(Code)(Java Doc)
public Tag getParent()(Code)(Java Doc)
public void invokeBody(XMLOutput output) throws JellyTagException(Code)(Java Doc)
public boolean isEscapeText()(Code)(Java Doc)
public boolean isTrim()(Code)(Java Doc)
public void setBody(Script body)(Code)(Java Doc)
public void setContext(JellyContext context) throws JellyTagException(Code)(Java Doc)
public void setEscapeText(boolean escapeText)(Code)(Java Doc)
public void setParent(Tag parent)(Code)(Java Doc)
public void setTrim(boolean shouldTrim)(Code)(Java Doc)
protected void trimBody()(Code)(Java Doc)

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.