|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataType<L>
Representation of the type of data associated with an operation. Data is
represented in two forms: the physical form used by the runtime and a logical
form used by the assembly. The physical form is a Java Type because the
runtime is written in Java. This may be the same form used by the application
but it may not; for example, an application that is performing stream
processing may want a physical form such as an
InputStream
to semantially operate on application
data such as a purchase order. The logical description is that used by the
assembly model and is an identifier into some well-known type space; examples
may be a Java type represented by its Class or an XML type represented by its
QName. Every data type may also contain metadata describing the expected
data; for example, it could specify a preferred data binding technology or
the size of a typical instance.
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 |
|
L |
getLogical()
Returns the logical identifier used by the assembly. |
|
|
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(L logical)
Set the logical type of the data type |
|
|
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 |
Method Detail |
---|
void setPhysical(java.lang.Class<?> cls)
cls
- java.lang.Class<?> getPhysical()
java.lang.reflect.Type getGenericType()
void setGenericType(java.lang.reflect.Type genericType)
genericType
- L getLogical()
java.lang.String getDataBinding()
void setDataBinding(java.lang.String dataBinding)
dataBinding
- the dataBinding to setjava.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
void setLogical(L logical)
logical
- the logical to set<T> T getMetaData(java.lang.Class<T> type)
type
- The java type of the metadata
<T> void setMetaData(java.lang.Class<T> type, T metaData)
type
- The java type of the metadatametaData
- the databinding-specific metadata, such as SDO's commonj.sdo.Type or
JAXB's javax.xml.bind.JAXBContext
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |