org.apache.tuscany.sca.databinding.jaxb
Class JAXBTypeHelper

java.lang.Object
  extended by org.apache.tuscany.sca.databinding.jaxb.JAXBTypeHelper
All Implemented Interfaces:
XMLTypeHelper

public class JAXBTypeHelper
extends java.lang.Object
implements XMLTypeHelper


Constructor Summary
JAXBTypeHelper()
           
 
Method Summary
static java.util.Map<java.lang.String,java.lang.String> generateSchema(javax.xml.bind.JAXBContext context)
           
 java.util.List<XSDefinition> getSchemaDefinitions(XSDFactory factory, ModelResolver resolver, Interface intf)
          Get a list of XML schemas for the given interface
 java.util.List<XSDefinition> getSchemaDefinitions(XSDFactory factory, ModelResolver resolver, java.util.List<DataType> dataTypes)
          Get a list of XML schemas for the given data types
 TypeInfo getTypeInfo(java.lang.Class javaType, java.lang.Object logical)
          Convert a Java type into XML type information
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBTypeHelper

public JAXBTypeHelper()
Method Detail

getTypeInfo

public TypeInfo getTypeInfo(java.lang.Class javaType,
                            java.lang.Object logical)
Description copied from interface: XMLTypeHelper
Convert a Java type into XML type information

Specified by:
getTypeInfo in interface XMLTypeHelper
Parameters:
javaType - the physical Java class
logical - the logical type information
Returns:
the XML type information

generateSchema

public static java.util.Map<java.lang.String,java.lang.String> generateSchema(javax.xml.bind.JAXBContext context)
                                                                       throws java.io.IOException
Throws:
java.io.IOException

getSchemaDefinitions

public java.util.List<XSDefinition> getSchemaDefinitions(XSDFactory factory,
                                                         ModelResolver resolver,
                                                         Interface intf)
Description copied from interface: XMLTypeHelper
Get a list of XML schemas for the given interface

Specified by:
getSchemaDefinitions in interface XMLTypeHelper
Returns:

getSchemaDefinitions

public java.util.List<XSDefinition> getSchemaDefinitions(XSDFactory factory,
                                                         ModelResolver resolver,
                                                         java.util.List<DataType> dataTypes)
Description copied from interface: XMLTypeHelper
Get a list of XML schemas for the given data types

Specified by:
getSchemaDefinitions in interface XMLTypeHelper
Returns: