Java Doc for MethodParameter.java in  » Library » Apache-beehive-1.0.2-src » org » apache » beehive » netui » tags » databinding » invoke » 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 beehive 1.0.2 src » org.apache.beehive.netui.tags.databinding.invoke 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.beehive.netui.tags.AbstractClassicTag
   org.apache.beehive.netui.tags.databinding.invoke.MethodParameter

MethodParameter
public class MethodParameter extends AbstractClassicTag (Code)

A tag that is used to add an argument to a method that will be called on some object. This tag can be nested within tags that extend the AbstractCallMethod class. Those tags are:

The MethodParameter tags are used to parameterize the method that the AbstractCallMethod class will call; each methodParameter tag represents a single parameter. These tags are evaluated in order and the parameters they describe are passed in order.

Overloaded methods on an object can be invoked by setting the type attribute on each methodParameter tag that is embedded in a method invocation tag. The type name must exactly match the primitive type name or the fully qualified class name of the argument. The methodParameter tags must also be in the order that they will be passed to this method. The value of the type attribute must be an exact match of the type if it were printed after having been accessed through Java reflection.

In order to pass null as an argument to a method, the null attribute must be set on this tag. Either the null attribute or the value attribute must be set on this tag.

This example shows how to pass parameters to the method call foo(int integer, String string).

 <netui-data:methodParamter value="42"/>
 <netui-data:methodParamter null="true"/>
 
This will correspond to the method call:
 foo(42, null);
 
The following sample shows how to pass parameters to the method call foo(int integer, String string) where the class has both of the methods foo(int integer, String string) and foo(Integer integer, String string).
 <netui-data:methodParamter type="int" value="42"/>
 <netui-data:methodParamter type="java.lang.String" null="true"/>
 
This will correspond to the method call:
 foo(42, null);
 

CallMethodCallPageFlowMethodParameterAbstractCallMethod


Field Summary
final public static  IntegerNULL_ARG
     An identifier denoting that the value of this method parameter should be treated as 'null'.


Method Summary
public  intdoEndTag()
     Prepare the value to pass up to the AbstractCallMethod type parent.
public  intdoStartTag()
     Start this tag's lifecycle.
public  StringgetTagName()
     Get the name of this tag.
protected  voidlocalRelease()
     Reset all of the fields of this tag.
public  voidsetNull(boolean isNull)
     Sets a boolean that describes that the parameter that should be passed to the method is null.
public  voidsetType(String type)
    

Set a String matching the type of this parameter on the method to invoke.

public  voidsetValue(Object value)
     Sets the value of the method parameter that will be passed to the method call.

Field Detail
NULL_ARG
final public static Integer NULL_ARG(Code)
An identifier denoting that the value of this method parameter should be treated as 'null'.





Method Detail
doEndTag
public int doEndTag() throws JspException(Code)
Prepare the value to pass up to the AbstractCallMethod type parent. MethodParameter.EVAL_PAGE to continue evaluating the page



doStartTag
public int doStartTag() throws JspException(Code)
Start this tag's lifecycle. Verify that this tag is nested within a AbstractCallMethod tag and that one of the "null" and "value" attributes are set. MethodParameter.SKIP_BODY
throws:
  JspException - if an error occurs getting the parameter



getTagName
public String getTagName()(Code)
Get the name of this tag. This is used to identify the type of this tag for reporting tag errors. a constant String representing the name of this tag.



localRelease
protected void localRelease()(Code)
Reset all of the fields of this tag.



setNull
public void setNull(boolean isNull)(Code)
Sets a boolean that describes that the parameter that should be passed to the method is null.
Parameters:
  isNull - a value that describes whether or not this tag should pass null; iftrue null will be passed; otherwise the value from the value attributewill be passed.



setType
public void setType(String type)(Code)

Set a String matching the type of this parameter on the method to invoke.

This name should match the primitive type name or fully qualified class name of the parameters on the signature of the method to which this parameter will be passed.

For example:
Method SignatureArgument NameType value
addToPrice(int price)priceint
addToPrice(Integer price)pricejava.lang.Integer

Parameters:
  type - the type name




setValue
public void setValue(Object value)(Code)
Sets the value of the method parameter that will be passed to the method call. This String can be an expression. If the value is not an expression that references an Ojbect, the AbstractCallMethod.doEndTag will attempt to convert the String to type that matches the position of the MethodParameter tag in the list of MethodParameter tags nested inside of an AbstractCallMethod tag.
Parameters:
  value - a String value which may be an expression



Fields inherited from org.apache.beehive.netui.tags.AbstractClassicTag
final public static List DefaultNamingChain(Code)(Java Doc)
final protected static String EMPTY_STRING(Code)(Java Doc)
final public static String NETUI_UNIQUE_CNT(Code)(Java Doc)

Methods inherited from org.apache.beehive.netui.tags.AbstractClassicTag
protected String applyNamingChain(String name) throws JspException(Code)(Java Doc)
protected String getErrorsReport()(Code)(Java Doc)
final protected String getIdForTagId(String tagId)(Code)(Java Doc)
protected List getNamingChain()(Code)(Java Doc)
protected Form getNearestForm()(Code)(Java Doc)
protected int getNextId(ServletRequest req)(Code)(Java Doc)
protected IScriptReporter getScriptReporter()(Code)(Java Doc)
abstract public String getTagName()(Code)(Java Doc)
protected Locale getUserLocale()(Code)(Java Doc)
protected boolean hasErrors()(Code)(Java Doc)
protected void localRelease()(Code)(Java Doc)
protected String qualifyAttribute(String name) throws JspException(Code)(Java Doc)
public void registerTagError(String message, Throwable e) throws JspException(Code)(Java Doc)
public void registerTagError(AbstractPageError error) throws JspException(Code)(Java Doc)
protected int reportAndExit(int returnValue) throws JspException(Code)(Java Doc)
protected void reportErrors() throws JspException(Code)(Java Doc)
final protected String rewriteName(String name)(Code)(Java Doc)
final protected String setNonEmptyValueAttribute(String attrValue)(Code)(Java Doc)
final protected String setRequiredValueAttribute(String attrValue, String attrName) throws JspException(Code)(Java Doc)
final protected void write(String string)(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.