|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.sca.databinding.impl.BaseDataBinding
public abstract class BaseDataBinding
Base Implementation of DataBinding
Field Summary |
---|
Fields inherited from interface org.apache.tuscany.sca.databinding.DataBinding |
---|
IDL_FAULT, IDL_INPUT, IDL_OUTPUT |
Constructor Summary | |
---|---|
protected |
BaseDataBinding(java.lang.Class<?> baseType)
Create a databinding with the base java type whose name will be used as the name of the databinding |
protected |
BaseDataBinding(java.lang.String name,
java.lang.Class<?> baseType)
Create a databinding with the name and base java type |
Method Summary | |
---|---|
java.lang.Object |
copy(java.lang.Object object,
DataType dataType,
Operation operation)
Make a copy of the object for "pass-by-value" semantics. |
java.lang.String |
getName()
The name of a databinding should be case-insensitive and unique |
WrapperHandler |
getWrapperHandler()
Provide a WrapperHandler for this databinding |
XMLTypeHelper |
getXMLTypeHelper()
Get the XML type helper for Java types |
boolean |
introspect(DataType type,
Operation operation)
Introspect and populate information to a DataType model |
DataType |
introspect(java.lang.Object value,
Operation operation)
Introspect the data to figure out the corresponding data type |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BaseDataBinding(java.lang.Class<?> baseType)
baseType
- The base java class or interface representing the
databinding, for example, org.w3c.dom.Nodeprotected BaseDataBinding(java.lang.String name, java.lang.Class<?> baseType)
name
- The name of the databindingbaseType
- The base java class or interface representing the
databinding, for example, org.w3c.dom.NodeMethod Detail |
---|
public boolean introspect(DataType type, Operation operation)
DataBinding
introspect
in interface DataBinding
type
- The data type to be introspectedoperation
- The operation
public DataType introspect(java.lang.Object value, Operation operation)
DataBinding
introspect
in interface DataBinding
value
- The object to be checkedoperation
- The operation
public final java.lang.String getName()
DataBinding
getName
in interface DataBinding
public WrapperHandler getWrapperHandler()
DataBinding
getWrapperHandler
in interface DataBinding
DataBinding.getWrapperHandler()
public java.lang.Object copy(java.lang.Object object, DataType dataType, Operation operation)
DataBinding
copy
in interface DataBinding
object
- source object to copydataType
- The data typeoperation
- The operation
public XMLTypeHelper getXMLTypeHelper()
DataBinding
getXMLTypeHelper
in interface DataBinding
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |