org.apache.tuscany.sca.databinding.sdo
Class SDOContextHelper

java.lang.Object
  extended by org.apache.tuscany.sca.databinding.sdo.SDOContextHelper

public final class SDOContextHelper
extends java.lang.Object

Helper class to get TypeHelper from the context


Method Summary
static java.lang.String generateSchema(HelperContext context, java.lang.Class<?>[] classes)
           
static java.lang.String generateSchema(HelperContext context, java.util.List<Type> types)
           
static HelperContext getDefaultHelperContext()
           
static javax.xml.namespace.QName getElement(TransformationContext context)
           
static HelperContext getHelperContext(Operation op)
           
static HelperContext getHelperContext(TransformationContext context, boolean source)
           
static boolean register(HelperContext helperContext, java.lang.Class javaType)
          FIXME: [rfeng] This is a hack to get the factory out a SDO class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHelperContext

public static HelperContext getHelperContext(TransformationContext context,
                                             boolean source)

getHelperContext

public static HelperContext getHelperContext(Operation op)

register

public static boolean register(HelperContext helperContext,
                               java.lang.Class javaType)
FIXME: [rfeng] This is a hack to get the factory out a SDO class

Parameters:
helperContext -
javaType -

getDefaultHelperContext

public static HelperContext getDefaultHelperContext()

getElement

public static javax.xml.namespace.QName getElement(TransformationContext context)

generateSchema

public static java.lang.String generateSchema(HelperContext context,
                                              java.lang.Class<?>[] classes)

generateSchema

public static java.lang.String generateSchema(HelperContext context,
                                              java.util.List<Type> types)