|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.common.ListTools
public class ListTools
Converts String
s to List
s and vice-versa,
using Property Editor rules.
Nested Class Summary | |
---|---|
static class |
ListTools.EnumerationIterator
Inner class that iterates through enumerations. |
Constructor Summary | |
---|---|
ListTools()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListTools()
Method Detail |
---|
public static List stringToList(String s)
String
to List
.
s
- String or null.
ListTools.listToString(java.util.List)
public static List iteratorToList(Iterator i)
ListTools.EnumerationIterator
to List
.
i
- Iterator or null.
public static List mapToList(Map m)
Map
to List
.
Converts each entry in map to name=value string (convert nulls to "").
m
- Map or null.
ListTools.stringToList(java.lang.String)
public static List objectToList(Object o)
ListTools.EnumerationIterator
to List
. If object is string, uses
ListTools.stringToList(java.lang.String)
.
o
- Object or null.
public static Collection iteratorToCollection(Iterator i)
ListTools.EnumerationIterator
to Collection
.
i
- Iterator or null.
public static Collection objectToCollection(Object o)
ListTools.EnumerationIterator
to Collection
. If object is string,
uses ListTools.stringToList(java.lang.String)
.
o
- Object or null.
public static Map stringToMap(String s)
String
to Map
.
s
- String or null.
ListTools.mapToString(java.util.Map)
public static String listToString(List l)
List
to String
.
l
- List or null.
ListTools.stringToList(java.lang.String)
protected static String listToString_ibm(List l)
l
- list or null
public static String mapToString(Map m)
Map
to String
.
m
- Map or null.
ListTools.stringToList(java.lang.String)
public static String iteratorToString(Iterator i)
ListTools.EnumerationIterator
to String
.
i
- Iterator or null.
ListTools.stringToList(java.lang.String)
public static String collectionToString(Collection c)
Collection
to String
.
c
- Colection or null.
ListTools.stringToList(java.lang.String)
public static String objectToString(Object o)
Object
to String
. If object is collection, uses
ListTools.collectionToString(java.util.Collection)
.
o
- Object or null.
ListTools.stringToList(java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |