org.xulux.utils
Class XuluxCollectionUtils

java.lang.Object
  extended by org.xulux.utils.XuluxCollectionUtils

public class XuluxCollectionUtils
extends java.lang.Object

Collection utilities to do conversions for Xulux.

Version:
$Id: NyxCollectionUtils.java,v 1.1 2005/12/18 12:58:15 mvdb Exp $
Author:
Martin van den Bemt

Constructor Summary
protected XuluxCollectionUtils()
           
 
Method Summary
static java.util.List getList(java.lang.Object object)
          Currently supports lists, collections and arrays
static java.util.List getListFromCSV(java.lang.String values)
          Tries to figure out the seperator used
static java.util.List getListFromCSV(java.lang.String values, java.lang.String delim)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XuluxCollectionUtils

protected XuluxCollectionUtils()
Method Detail

getListFromCSV

public static java.util.List getListFromCSV(java.lang.String values)
Tries to figure out the seperator used

Parameters:
values - - the seper
Returns:
a list from seperated values or null when values is null

getListFromCSV

public static java.util.List getListFromCSV(java.lang.String values,
                                            java.lang.String delim)
Parameters:
values - the values
delim - seperator
Returns:
a list from seperated values or null when values is null

getList

public static java.util.List getList(java.lang.Object object)
Currently supports lists, collections and arrays

Parameters:
object - the object to create the list from
Returns:
A list from the specified object. If the object is already a list, it will return with the list passed in. If it is not a collection, array or list, it will just create a new list and add the passed in object to that list resulting in one value in the list content.


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.