org.mmbase.util.functions

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 
org.mmbase.util.functions
org.mmbase.util.functions - The MMBase 'function framework'.

The function framework is all about the creation of {@link org.mmbase.util.functions.Function} instances, from which then, subsequently, function values can be acquired. To do that you need to supply the {@link org.mmbase.util.functions.Parameters} to the function.

Functions come in several different variants. There are completely stand alone functions, e.g. {@link org.mmbase.util.functions.Functions} (of which a limited number of instances can exists), but they can also be associated with some object (in OO speak: they mimic instance member functions of that object then). {@link org.mmbase.util.functions.NodeFunction} Function objects can e.g. be associated with {@link org.mmbase.bridge.Node} objects. Such function objects can exists very many (for every possible node, for every function on it, there can be a Function object). Other object instance related functions may be associated with Modules and NodeManager.

How to use functions

Taglib users would use the function tags. Those are documented in the taglib reference documentation (and a bit of small example code can be found in javadoc of {@link org.mmbase.util.functions.ExampleBuilder}). More taglib examples for functions can be found in /mmexamples/taglib/functions.jsp of the distro.

A programmer needs to know several things.

  • Functions are basically bridge things. So nodes are bridge Nodes.
  • FunctionProviders have {@link org.mmbase.util.functions.FunctionProvider#addFunction(Function)}
  • {@link org.mmbase.util.functions.AbstractFunction} is available to quickly define a function.
  • {@link org.mmbase.util.functions.NodeFunction} is available to quickly define a function on a Node.
  • An example of a node and builder function implementation can be found in {@link org.mmbase.util.functions.ExampleBuilder}.
  • You can also add functions to a builder in the builder XML. E.g. based on a method in another class, or other FunctionProvider.

@since MMBase-1.7
Java Source File NameTypeComment
AbstractFunction.javaClass An abstract representation of a piece of functionality (a 'function').
AutodefiningParameters.javaClass If there is no Parameter definition array available you could try it with this specialization, which does not need one. You loose al checking on type and availability.
BeanFunction.javaClass One or more functions based on a Java-bean.
BeanFunctionProvider.javaClass
ClassFunctionProvider.javaClass Maintains all methods of a certain class as function object (as long as they have unique names).
CombinedFunction.javaClass A combined function combines other function object.
DescribedFunctionProvider.javaClass A described function provider maintains a set of Function objects, and also contains functionality to add gui information to the provider itself.
ExampleBean.javaClass A bean can be accessed through the function framework.
ExampleBuilder.javaClass Example builder implementation implementing functions.
Function.javaInterface A representation of a piece of functionality (a 'function').
FunctionFactory.javaClass The FunctionFactory instanciates Function objects.
FunctionProvider.javaClass A function provider maintains a set of Function objects.
Functions.javaClass This class defines static methods for defining Function and Parameters objects.
FunctionSet.javaClass The implementation of one set ('namespace') of functions.
FunctionSets.javaClass A utility class for maintaining and querying functionsets.
GuiFunction.javaClass
IndexFunction.javaClass The index node functions can be assigned to nodes which are connected by an 'index' relation.
MethodFunction.javaClass A function based on an abritrary method.
Name.javaAnnotation The name of a parameter as a annotation interface.
NodeFunction.javaClass A NodeFunction represents a function on a node instances of this builder.
Parameter.javaClass Each (function) argument is specified by a Parameter object. A Parameter contains a name and type (it does not contain a value).
Parameters.javaClass This class implemements the Parameters interface. It provides a convenient way to create a List that allows the use of 'named parameters'. This List is therefore backed by a HashMap, but it behaves as a list.
PatternNodeFunctionProvider.javaClass This Function provider creates function objects , which can create a String function based on a pattern.
Required.javaAnnotation
ReturnType.javaClass Description of the return type of certain function.
SetFunction.javaClass A SetFunction is a Function which wraps precisely one method of a class.
Utils.javaClass Several utility methods.
WrappedFunction.javaClass A wrapped function is a base class for function objects based on an other function object.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.