|
EclipseLink1.0 - 20080707 API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.sdo.helper.delegates.SDOTypeHelperDelegate
public class SDOTypeHelperDelegate
Purpose: Helper to provide access to declared SDO Types.
Responsibilities:
Field Summary |
---|
Fields inherited from interface commonj.sdo.helper.TypeHelper |
---|
INSTANCE |
Constructor Summary | |
---|---|
SDOTypeHelperDelegate(commonj.sdo.helper.HelperContext aContext)
|
Method Summary | |
---|---|
java.lang.String |
addNamespace(java.lang.String prefix,
java.lang.String uri)
INTERNAL: Add the given namespace uri and prefix to the global namespace resolver. |
void |
addType(SDOType newType)
INTERNAL: |
void |
addWrappersToProject(Project toplinkProject)
|
commonj.sdo.Type |
define(commonj.sdo.DataObject dataObject)
|
commonj.sdo.Type |
define(commonj.sdo.DataObject dataObject,
java.util.List types)
Define the DataObject as a Type. |
java.util.List |
define(java.util.List types)
Define the list of DataObjects as Types. |
commonj.sdo.Property |
defineOpenContentProperty(java.lang.String uri,
commonj.sdo.DataObject propertyDO)
Define the DataObject as a Property for setting open content. |
commonj.sdo.helper.HelperContext |
getHelperContext()
INTERNAL: Return the current helperContext associated with this delegate. |
java.lang.Class |
getJavaWrapperTypeForSDOType(commonj.sdo.Type sdoType)
INTERNAL: |
NamespaceResolver |
getNamespaceResolver()
INTERNAL: Return the NamespaceResolver |
java.util.Map |
getOpenContentProperties()
INTERNAL: Return the Map of Open Content Properties |
commonj.sdo.Property |
getOpenContentProperty(java.lang.String uri,
java.lang.String propertyName)
Get the open Property with the specified uri and name, or null if not found. |
java.lang.String |
getPrefix(java.lang.String uri)
INTERNAL: Return the prefix for the given uri, or generate a new one if necessary |
SDOType |
getSDOTypeFromXSDType(javax.xml.namespace.QName aName)
A function to access the values stored in sdoToXSDTypes HashMap |
SDOType |
getType(java.lang.Class interfaceClass)
Return the Type for this interfaceClass or null if not found. |
SDOType |
getType(java.lang.String uri,
java.lang.String typeName)
Return the Type specified by typeName with the given uri, or null if not found. |
SDOType |
getTypeForSimpleJavaType(java.lang.Class implClass)
INTERNAL: Used to determine which SDO Type corresponds the given Java simple type |
java.util.Map |
getTypesHashMap()
INTERNAL: |
java.util.Map |
getWrappersHashMap()
INTERNAL: Return the map of Wrapper objects (SDOWrapperTypes that wrap a primitive document). |
javax.xml.namespace.QName |
getXSDTypeFromSDOType(commonj.sdo.Type aType)
A function to access the values stored in xsdToSDOType HashMap |
void |
initWrapperTypes()
|
void |
reset()
INTERNAL: |
void |
setHelperContext(commonj.sdo.helper.HelperContext helperContext)
INTERNAL: Set the current helperContext to be associated with this delegate |
void |
setTypesHashMap(java.util.Map typesHashMap)
INTERNAL: |
void |
setWrappersHashMap(java.util.Map aMap)
INTERNAL: Set the map of Wrapper objects (SDOWrapperTypes that wrap a primitive document). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SDOTypeHelperDelegate(commonj.sdo.helper.HelperContext aContext)
Method Detail |
---|
public void initWrapperTypes()
public void addWrappersToProject(Project toplinkProject)
addWrappersToProject
in interface SDOTypeHelper
public java.lang.Class getJavaWrapperTypeForSDOType(commonj.sdo.Type sdoType)
SDOTypeHelper
getJavaWrapperTypeForSDOType
in interface SDOTypeHelper
public SDOType getType(java.lang.String uri, java.lang.String typeName)
getType
in interface commonj.sdo.helper.TypeHelper
uri
- The uri of the Type - type.getURI();typeName
- The name of the Type - type.getName();
public void addType(SDOType newType)
SDOTypeHelper
addType
in interface SDOTypeHelper
public SDOType getType(java.lang.Class interfaceClass)
getType
in interface commonj.sdo.helper.TypeHelper
interfaceClass
- is the interface for the DataObject's Type -
type.getInstanceClass();
public SDOType getTypeForSimpleJavaType(java.lang.Class implClass)
getTypeForSimpleJavaType
in interface SDOTypeHelper
public commonj.sdo.Type define(commonj.sdo.DataObject dataObject)
define
in interface commonj.sdo.helper.TypeHelper
public commonj.sdo.Type define(commonj.sdo.DataObject dataObject, java.util.List types)
type
- the DataObject representing the Type.
java.lang.IllegalArgumentException
- if the Type could not be defined.public java.util.List define(java.util.List types)
define
in interface commonj.sdo.helper.TypeHelper
types
- a List of DataObjects representing the Types.
java.lang.IllegalArgumentException
- if the Types could not be defined.public javax.xml.namespace.QName getXSDTypeFromSDOType(commonj.sdo.Type aType)
getXSDTypeFromSDOType
in interface SDOTypeHelper
aType
- a SDO Type Object
public SDOType getSDOTypeFromXSDType(javax.xml.namespace.QName aName)
getSDOTypeFromXSDType
in interface SDOTypeHelper
aName
-
public void setTypesHashMap(java.util.Map typesHashMap)
SDOTypeHelper
setTypesHashMap
in interface SDOTypeHelper
public java.util.Map getTypesHashMap()
SDOTypeHelper
getTypesHashMap
in interface SDOTypeHelper
public java.util.Map getWrappersHashMap()
getWrappersHashMap
in interface SDOTypeHelper
public void setWrappersHashMap(java.util.Map aMap)
setWrappersHashMap
in interface SDOTypeHelper
aMap
- a HashMap of SDOWrapperTypes, keyed on the XSD type that it wraps.public void reset()
SDOTypeHelper
reset
in interface SDOTypeHelper
public commonj.sdo.Property defineOpenContentProperty(java.lang.String uri, commonj.sdo.DataObject propertyDO)
defineOpenContentProperty
in interface commonj.sdo.helper.TypeHelper
uri
- the namespace URI of the open Property or null.
java.lang.IllegalArgumentException
- if the Property could not be defined.public commonj.sdo.Property getOpenContentProperty(java.lang.String uri, java.lang.String propertyName)
getOpenContentProperty
in interface commonj.sdo.helper.TypeHelper
uri
- the namespace URI of the open Property.propertyName
- the name of the open Property.
public commonj.sdo.helper.HelperContext getHelperContext()
getHelperContext
in interface SDOTypeHelper
public void setHelperContext(commonj.sdo.helper.HelperContext helperContext)
setHelperContext
in interface SDOTypeHelper
public java.lang.String getPrefix(java.lang.String uri)
getPrefix
in interface SDOTypeHelper
public java.lang.String addNamespace(java.lang.String prefix, java.lang.String uri)
addNamespace
in interface SDOTypeHelper
public NamespaceResolver getNamespaceResolver()
getNamespaceResolver
in interface SDOTypeHelper
public java.util.Map getOpenContentProperties()
getOpenContentProperties
in interface SDOTypeHelper
|
EclipseLink1.0 - 20080707 API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |