org.globus.cog.karajan.util
Class TypeUtil

java.lang.Object
  extended by org.globus.cog.karajan.util.TypeUtil

public class TypeUtil
extends Object


Field Summary
static Identifier[] EMPTY_IDENTIFIER_ARRAY
           
static String[] EMPTY_STRING_ARRAY
           
 
Constructor Summary
TypeUtil()
           
 
Method Summary
static String listToString(List l)
           
static boolean toBoolean(Object obj)
           
static double toDouble(Object obj)
           
static Identifier toIdentifier(Object obj)
           
static Identifier[] toIdentifierArray(Object obj)
           
static int toInt(Object obj)
           
static Integer toInteger(Object obj)
           
static KarajanIterator toIterator(Object obj)
           
static List toList(Object obj)
           
static long toLong(Object obj)
           
static String[] toLowerStringArray(String arg)
           
static Number toNumber(Object obj)
           
static String toString(Object obj)
           
static String[] toStringArray(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_STRING_ARRAY

public static final String[] EMPTY_STRING_ARRAY

EMPTY_IDENTIFIER_ARRAY

public static final Identifier[] EMPTY_IDENTIFIER_ARRAY
Constructor Detail

TypeUtil

public TypeUtil()
Method Detail

toDouble

public static double toDouble(Object obj)

toNumber

public static Number toNumber(Object obj)

toInt

public static int toInt(Object obj)

toLong

public static long toLong(Object obj)

toBoolean

public static boolean toBoolean(Object obj)

toList

public static List toList(Object obj)

toIterator

public static KarajanIterator toIterator(Object obj)
                                  throws ExecutionException
Throws:
ExecutionException

toString

public static String toString(Object obj)

toInteger

public static Integer toInteger(Object obj)

toStringArray

public static String[] toStringArray(Object obj)

toIdentifierArray

public static Identifier[] toIdentifierArray(Object obj)

toIdentifier

public static Identifier toIdentifier(Object obj)

toLowerStringArray

public static String[] toLowerStringArray(String arg)

listToString

public static String listToString(List l)