|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TypeHelper
Look up a Type given the uri and typeName or interfaceClass. SDO Types are available through the getType("commonj.sdo", typeName) method. Defines Types from DataObjects.
| Field Summary | |
|---|---|
static TypeHelper |
INSTANCE
The default TypeHelper. |
| Method Summary | |
|---|---|
Type |
define(DataObject type)
Define the DataObject as a Type. |
java.util.List |
define(java.util.List types)
Define the list of DataObjects as Types. |
Property |
defineOpenContentProperty(java.lang.String uri,
DataObject property)
Define the DataObject as a Property for setting open content. |
Property |
getOpenContentProperty(java.lang.String uri,
java.lang.String propertyName)
Get the open content (global) Property with the specified uri and name, or null if not found. |
Type |
getType(java.lang.Class interfaceClass)
Return the Type for this interfaceClass or null if not found. |
Type |
getType(java.lang.String uri,
java.lang.String typeName)
Return the Type specified by typeName with the given uri, or null if not found. |
| Field Detail |
|---|
static final TypeHelper INSTANCE
| Method Detail |
|---|
Type getType(java.lang.String uri,
java.lang.String typeName)
uri - The uri of the Type - type.getURI();typeName - The name of the Type - type.getName();
Type getType(java.lang.Class interfaceClass)
interfaceClass - is the interface for the DataObject's Type -
type.getInstanceClass();
Property getOpenContentProperty(java.lang.String uri,
java.lang.String propertyName)
uri - the namespace URI of the open content Property.propertyName - the name of the open content Property.
Type define(DataObject type)
type - the DataObject representing the Type.
java.lang.IllegalArgumentException - if the Type could not be defined.java.util.List define(java.util.List types)
types - a List of DataObjects representing the Types.
java.lang.IllegalArgumentException - if the Types could not be defined.
Property defineOpenContentProperty(java.lang.String uri,
DataObject property)
uri - the namespace URI of the open content Property or null.
java.lang.IllegalArgumentException - if the Property could not be defined.
|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||