2016/05/28 - Apache Tuscany has been retired.
For more information, please explore the Attic.
org.apache.tuscany.sca.databinding.json
Class JSONDataBinding
java.lang.Object
org.apache.tuscany.sca.databinding.impl.BaseDataBinding
org.apache.tuscany.sca.databinding.json.JSONDataBinding
- All Implemented Interfaces:
- DataBinding
public class JSONDataBinding
- extends BaseDataBinding
JAXB DataBinding
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
JSONDataBinding
public JSONDataBinding()
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 introspectedoperation
- 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 copydataType
- The data typeoperation
- The operation
- Returns:
- copy of the object passed in as argument