org.apache.tuscany.sca.databinding.util
Class DataTypeHelper

java.lang.Object
  extended by org.apache.tuscany.sca.databinding.util.DataTypeHelper

public class DataTypeHelper
extends java.lang.Object


Method Summary
static java.util.Set<java.lang.Class<?>> findClasses(DataType d)
          Find all classes referenced by this data type though java generics
static java.util.List<DataType> getDataTypes(Interface intf, boolean useWrapper)
          Get all the data types in the interface
static java.util.List<DataType> getDataTypes(Operation op, boolean useWrapper)
          Get all the data types in the operation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findClasses

public static java.util.Set<java.lang.Class<?>> findClasses(DataType d)
Find all classes referenced by this data type though java generics

Parameters:
d -
Returns:

getDataTypes

public static java.util.List<DataType> getDataTypes(Interface intf,
                                                    boolean useWrapper)
Get all the data types in the interface

Parameters:
intf - The interface
useWrapper - Use wrapper classes?
Returns:
A list of DataTypes

getDataTypes

public static java.util.List<DataType> getDataTypes(Operation op,
                                                    boolean useWrapper)
Get all the data types in the operation

Parameters:
op - The operaiton
useWrapper - Use wrapper classes?
Returns:
A list of DataTypes