net.sf.mmapps.commons.beans
Class MMBaseNodeMapper

java.lang.Object
  extended by net.sf.mmapps.commons.beans.MMBaseNodeMapper

public class MMBaseNodeMapper
extends java.lang.Object

Utilities to map Node fields to POJO's by using Apache Commons BeanUtils

Version:
$Revision: 1.1 $
Author:
Wouter Heijke

Constructor Summary
MMBaseNodeMapper()
           
 
Method Summary
static java.util.List convertList(org.mmbase.bridge.NodeList l, java.lang.Class clazz)
           
static void copyBean(java.lang.Object bean, org.mmbase.bridge.Node node)
           
static java.lang.Object copyNode(org.mmbase.bridge.Node node, java.lang.Class clazz)
          Maps fields from a MMBase node to a Java Class
static java.lang.Object copyNode(org.mmbase.bridge.Node node, java.lang.Object nodeClass)
          Maps fields from a MMBase node to a Java Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MMBaseNodeMapper

public MMBaseNodeMapper()
Method Detail

copyNode

public static java.lang.Object copyNode(org.mmbase.bridge.Node node,
                                        java.lang.Object nodeClass)
Maps fields from a MMBase node to a Java Object

Parameters:
node - MMBase Node to use
nodeClass - Java object to place values from source Node fields into
Returns:
The initialized Java object

copyNode

public static java.lang.Object copyNode(org.mmbase.bridge.Node node,
                                        java.lang.Class clazz)
Maps fields from a MMBase node to a Java Class

Parameters:
node - MMBase Node to use
clazz - Java class to place values from source Node fields into
Returns:
Instance of the Java Class initialized with the fields from the Node

convertList

public static java.util.List convertList(org.mmbase.bridge.NodeList l,
                                         java.lang.Class clazz)

copyBean

public static void copyBean(java.lang.Object bean,
                            org.mmbase.bridge.Node node)


Copyright © 2003-2006 mmapps. All Rights Reserved.