org.apache.tuscany.sca.databinding.json
Class JSONDataBinding

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

public class JSONDataBinding
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
JSONDataBinding()
           
 
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.
 boolean introspect(DataType type, Operation operation)
          Introspect and populate information to a DataType model
 
Methods inherited from class org.apache.tuscany.sca.databinding.impl.BaseDataBinding
getName, getWrapperHandler, getXMLTypeHelper, 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
See Also:
Constant Field Values

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

JSONDataBinding

public JSONDataBinding()
Method Detail

introspect

public boolean introspect(DataType type,
                          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:
type - 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