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

java.lang.Object
  extended by org.apache.tuscany.sca.databinding.impl.BaseDataBinding
      extended by org.apache.tuscany.sca.databinding.jaxb.JAXBDataBinding
All Implemented Interfaces:
DataBinding

public class JAXBDataBinding
extends BaseDataBinding

JAXB DataBinding


Field Summary
static java.lang.String NAME
           
static javax.xml.namespace.QName ROOT_ELEMENT
           
static java.lang.String ROOT_NAMESPACE
           
 
Fields inherited from interface org.apache.tuscany.sca.databinding.DataBinding
IDL_FAULT, IDL_INPUT, IDL_OUTPUT
 
Constructor Summary
JAXBDataBinding()
           
 
Method Summary
 java.lang.Object copy(java.lang.Object arg, DataType dataType, Operation operation)
          Make a copy of the object for "pass-by-value" semantics.
 WrapperHandler getWrapperHandler()
          Provide a WrapperHandler for this databinding
 XMLTypeHelper getXMLTypeHelper()
          Get the XML type helper for Java types
 boolean introspect(DataType dataType, Operation operation)
          Introspect and populate information to a DataType model
 
Methods inherited from class org.apache.tuscany.sca.databinding.impl.BaseDataBinding
getName, introspect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME

ROOT_NAMESPACE

public static final java.lang.String ROOT_NAMESPACE
See Also:
Constant Field Values

ROOT_ELEMENT

public static final javax.xml.namespace.QName ROOT_ELEMENT
Constructor Detail

JAXBDataBinding

public JAXBDataBinding()
Method Detail

introspect

public boolean introspect(DataType dataType,
                          Operation operation)
Description copied from interface: DataBinding
Introspect and populate information to a DataType model

Specified by:
introspect in interface DataBinding
Overrides:
introspect in class BaseDataBinding
Parameters:
dataType - The data type to be introspected
operation - The operation
Returns:
true if the databinding has recognized the given data type

copy

public java.lang.Object copy(java.lang.Object arg,
                             DataType dataType,
                             Operation operation)
Description copied from interface: DataBinding
Make a copy of the object for "pass-by-value" semantics.

Specified by:
copy in interface DataBinding
Overrides:
copy in class BaseDataBinding
Parameters:
arg - source object to copy
dataType - The data type
operation - The operation
Returns:
copy of the object passed in as argument

getWrapperHandler

public WrapperHandler getWrapperHandler()
Description copied from interface: DataBinding
Provide a WrapperHandler for this databinding

Specified by:
getWrapperHandler in interface DataBinding
Overrides:
getWrapperHandler in class BaseDataBinding
Returns:
A wrapper handler which can handle wrapping/wrapping for this databinding
See Also:
DataBinding.getWrapperHandler()

getXMLTypeHelper

public XMLTypeHelper getXMLTypeHelper()
Description copied from interface: DataBinding
Get the XML type helper for Java types

Specified by:
getXMLTypeHelper in interface DataBinding
Overrides:
getXMLTypeHelper in class BaseDataBinding
Returns:
The databinding-specific XML type helper class