org.apache.tuscany.sca.interfacedef.java.jaxws
Class GeneratedDataTypeImpl

java.lang.Object
  extended by org.apache.tuscany.sca.interfacedef.java.jaxws.GeneratedDataTypeImpl
All Implemented Interfaces:
java.lang.Cloneable, DataType<XMLType>

public class GeneratedDataTypeImpl
extends java.lang.Object
implements DataType<XMLType>

A special data type that generate the class on demand


Constructor Summary
GeneratedDataTypeImpl(XMLAdapterExtensionPoint xmlAdapters, java.lang.Class<? extends java.lang.Throwable> exceptionClass, GeneratedClassLoader cl)
           
GeneratedDataTypeImpl(XMLAdapterExtensionPoint xmlAdapters, java.lang.reflect.Method m, java.lang.String wrapperClassName, java.lang.String wrapperNamespace, java.lang.String wrapperName, boolean request, GeneratedClassLoader cl)
           
 
Method Summary
 java.lang.Object clone()
          Clone a data type
 java.lang.String getDataBinding()
          Get the databinding for the given data type
 java.lang.reflect.Type getGenericType()
          Get the java generic type
 XMLType getLogical()
          Returns the logical identifier used by the assembly.
<T> T
getMetaData(java.lang.Class<T> type)
          Get the databinding-specific metadata
 java.lang.Class<?> getPhysical()
          Returns the physical type used by the runtime.
 void setDataBinding(java.lang.String dataBinding)
          Set the databinding for the given data type
 void setGenericType(java.lang.reflect.Type genericType)
          Set the java generic type
 void setLogical(XMLType logical)
          Set the logical type of the data type
<T> void
setMetaData(java.lang.Class<T> type, T metaData)
          Set the databinding-specific metadata
 void setPhysical(java.lang.Class<?> cls)
          Set the java type for the data
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratedDataTypeImpl

public GeneratedDataTypeImpl(XMLAdapterExtensionPoint xmlAdapters,
                             java.lang.Class<? extends java.lang.Throwable> exceptionClass,
                             GeneratedClassLoader cl)

GeneratedDataTypeImpl

public GeneratedDataTypeImpl(XMLAdapterExtensionPoint xmlAdapters,
                             java.lang.reflect.Method m,
                             java.lang.String wrapperClassName,
                             java.lang.String wrapperNamespace,
                             java.lang.String wrapperName,
                             boolean request,
                             GeneratedClassLoader cl)
Method Detail

getDataBinding

public java.lang.String getDataBinding()
Description copied from interface: DataType
Get the databinding for the given data type

Specified by:
getDataBinding in interface DataType<XMLType>
Returns:
the databinding

getGenericType

public java.lang.reflect.Type getGenericType()
Description copied from interface: DataType
Get the java generic type

Specified by:
getGenericType in interface DataType<XMLType>
Returns:
The java generic type

getLogical

public XMLType getLogical()
Description copied from interface: DataType
Returns the logical identifier used by the assembly. The type of this value identifies the logical type system in use. Known values are:

Specified by:
getLogical in interface DataType<XMLType>
Returns:
the logical type name

getPhysical

public java.lang.Class<?> getPhysical()
Description copied from interface: DataType
Returns the physical type used by the runtime.

Specified by:
getPhysical in interface DataType<XMLType>
Returns:
the physical type used by the runtime

setDataBinding

public void setDataBinding(java.lang.String dataBinding)
Description copied from interface: DataType
Set the databinding for the given data type

Specified by:
setDataBinding in interface DataType<XMLType>
Parameters:
dataBinding - the dataBinding to set

setGenericType

public void setGenericType(java.lang.reflect.Type genericType)
Description copied from interface: DataType
Set the java generic type

Specified by:
setGenericType in interface DataType<XMLType>

setLogical

public void setLogical(XMLType logical)
Description copied from interface: DataType
Set the logical type of the data type

Specified by:
setLogical in interface DataType<XMLType>
Parameters:
logical - the logical to set

setPhysical

public void setPhysical(java.lang.Class<?> cls)
Description copied from interface: DataType
Set the java type for the data

Specified by:
setPhysical in interface DataType<XMLType>

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from interface: DataType
Clone a data type

Specified by:
clone in interface DataType<XMLType>
Overrides:
clone in class java.lang.Object
Returns:
The cloned data type
Throws:
java.lang.CloneNotSupportedException

getMetaData

public <T> T getMetaData(java.lang.Class<T> type)
Description copied from interface: DataType
Get the databinding-specific metadata

Specified by:
getMetaData in interface DataType<XMLType>
Parameters:
type - The java type of the metadata
Returns:
the databinding-specific metadata

setMetaData

public <T> void setMetaData(java.lang.Class<T> type,
                            T metaData)
Description copied from interface: DataType
Set the databinding-specific metadata

Specified by:
setMetaData in interface DataType<XMLType>
Parameters:
type - The java type of the metadata
metaData - the databinding-specific metadata, such as SDO's commonj.sdo.Type or JAXB's javax.xml.bind.JAXBContext