Java Doc for NodeFunction.java in  » Database-ORM » MMBase » org » mmbase » util » functions » 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 » Database ORM » MMBase » org.mmbase.util.functions 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.mmbase.util.functions.NodeFunction

NodeFunction
abstract public class NodeFunction extends AbstractFunction (Code)
A NodeFunction represents a function on a node instances of this builder. This means that it always has one implicit node argument. This node-argument needs not be mentioned in the Parameter array of the constructor.
author:
   Michiel Meeuwissen
version:
   $Id: NodeFunction.java,v 1.31 2007/11/25 18:25:49 nklasens Exp $
See Also:   org.mmbase.module.core.MMObjectBuilder.executeFunction
See Also:   org.mmbase.bridge.Node.getFunctionValue
See Also:   org.mmbase.util.functions.BeanFunction
since:
   MMBase-1.8



Constructor Summary
public  NodeFunction(String name, Parameter[] def, ReturnType<R> returnType)
    
public  NodeFunction(String name, Parameter... def)
    

Method Summary
final protected  MMObjectNodegetCoreNode(MMObjectBuilder builder, Node node)
     Utility method to convert a org.mmbase.bridge.Node to a a org.mmbase.module.core.MMObjectNode .
public static  StringgetFunctionNameAndFillArgs(String function, java.util.List args)
    
public static  FieldValuegetFunctionValue(Node node, String function)
     Utility function, for easy call of function on node by one string.
final protected  RgetFunctionValue(MMObjectNode coreNode, Parameters parameters)
     Implements the function on a certain node.
abstract protected  RgetFunctionValue(Node node, Parameters parameters)
    
public  RgetFunctionValue(Parameters parameters)
     To implement a NodeFunction, you must override NodeFunction.getFunctionValue(Node,Parameters) .
protected  NodegetNode(Parameters parameters)
    
protected static  Parameter[]getNodeParameterDef(Parameter... def)
    
public  ReturnType<R>getReturnType()
    
final public  Function<R>newInstance(MMObjectNode node)
     Returns a new instance of NodeInstanceFunction, which represents an actual Function.
public static  NodeFunction<S>wrap(Function<S> function)
     Tries to convert a certain Function object into a NodeFunction object.


Constructor Detail
NodeFunction
public NodeFunction(String name, Parameter[] def, ReturnType<R> returnType)(Code)



NodeFunction
public NodeFunction(String name, Parameter... def)(Code)

since:
   MMBase-1.9




Method Detail
getCoreNode
final protected MMObjectNode getCoreNode(MMObjectBuilder builder, Node node)(Code)
Utility method to convert a org.mmbase.bridge.Node to a a org.mmbase.module.core.MMObjectNode .



getFunctionNameAndFillArgs
public static String getFunctionNameAndFillArgs(String function, java.util.List args)(Code)



getFunctionValue
public static FieldValue getFunctionValue(Node node, String function)(Code)
Utility function, for easy call of function on node by one string.



getFunctionValue
final protected R getFunctionValue(MMObjectNode coreNode, Parameters parameters)(Code)
Implements the function on a certain node. Override this method or it's bridge counter-part NodeFunction.getFunctionValue(org.mmbase.bridge.Node,Parameters) . Overriding the bridge version has two advantages. It's easier, and mmbase security will be honoured. That last thing is of course not necesary if you are not going to use other nodes. XXX: made final because it does not work well if you don't implement a bridge version



getFunctionValue
abstract protected R getFunctionValue(Node node, Parameters parameters)(Code)



getFunctionValue
public R getFunctionValue(Parameters parameters)(Code)
To implement a NodeFunction, you must override NodeFunction.getFunctionValue(Node,Parameters) . This one can be overriden if the same function must also be a builder function.



getNode
protected Node getNode(Parameters parameters)(Code)



getNodeParameterDef
protected static Parameter[] getNodeParameterDef(Parameter... def)(Code)



getReturnType
public ReturnType<R> getReturnType()(Code)
The currently set ReturnType, or null if not set already.



newInstance
final public Function<R> newInstance(MMObjectNode node)(Code)
Returns a new instance of NodeInstanceFunction, which represents an actual Function.



wrap
public static NodeFunction<S> wrap(Function<S> function)(Code)
Tries to convert a certain Function object into a NodeFunction object. function if that was already a NodeFunction, null if itcould not be wrapped (No Parameter.NODE parameter), or a new NodeFunction objectwrapping function
since:
   MMBase-1.8.5



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