org.apache.jackrabbit.ocm.manager.collectionconverter
Class ManageableObjectsUtil

java.lang.Object
  extended by org.apache.jackrabbit.ocm.manager.collectionconverter.ManageableObjectsUtil

public class ManageableObjectsUtil
extends Object

Utility class used to instantiate ManageableObjects A ManageableObjects is a Collection or a Map

Author:
Christophe Lombart

Constructor Summary
ManageableObjectsUtil()
           
 
Method Summary
static ManageableObjects getManageableObjects(Class manageableObjectsClass)
          Instantiate a new ManageableObjects
static ManageableObjects getManageableObjects(Object object)
          Convert a java Collection or a Map into a ManageableObjects.
static ManageableObjects getManageableObjects(String manageableObjectsClassName)
          Instantiate a new ManageableObjects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManageableObjectsUtil

public ManageableObjectsUtil()
Method Detail

getManageableObjects

public static ManageableObjects getManageableObjects(String manageableObjectsClassName)
Instantiate a new ManageableObjects

Parameters:
manageableObjectsClassName - The manageable objects class name
Returns:
an emtpy created ManageableObjects

getManageableObjects

public static ManageableObjects getManageableObjects(Class manageableObjectsClass)
Instantiate a new ManageableObjects

Parameters:
manageableObjectsClass - the collection class name
Returns:
an emtpy created ManageableCollection

getManageableObjects

public static ManageableObjects getManageableObjects(Object object)
Convert a java Collection or a Map into a ManageableObjects. The elements of a Map should have an ID field (see the field descriptor definition).

Parameters:
object - the collection or the Map objet
Returns:
The converted ManageableObjects


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.