|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.sdo.helper.delegates.SDOTypeHelperDelegate
public class SDOTypeHelperDelegate
Purpose: Helper to provide access to declared SDO Types.
Responsibilities:
Constructor Summary | |
---|---|
SDOTypeHelperDelegate(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. |
Type |
define(DataObject dataObject)
Define the DataObject as a Type. |
Property |
defineOpenContentProperty(java.lang.String uri,
DataObject propertyDO)
Define the DataObject as a Property for setting open content. |
HelperContext |
getHelperContext()
INTERNAL: Return the current helperContext associated with this delegate. |
java.lang.Class |
getJavaWrapperTypeForSDOType(Type sdoType)
INTERNAL: |
NamespaceResolver |
getNamespaceResolver()
INTERNAL: Return the NamespaceResolver |
java.util.Map |
getOpenContentProperties()
INTERNAL: Return the Map of Open Content Properties |
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. |
Type |
getOrCreateType(java.lang.String uri,
java.lang.String typeName,
java.lang.String xsdLocalName)
INTERNAL: |
Type |
getOrCreateType(Type next)
INTERNAL: |
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 |
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. |
Type |
getTypeForSimpleJavaType(java.lang.Class implClass)
INTERNAL: Used to determine which SDO Type corresponds the given Java simple type |
java.util.Map |
getTypesHashMap()
INTERNAL: |
javax.xml.namespace.QName |
getXSDTypeFromSDOType(Type aType)
A function to access the values stored in xsdToSDOType HashMap |
void |
reset()
INTERNAL: |
void |
setHelperContext(HelperContext helperContext)
INTERNAL: Set the current helperContext to be associated with this delegate |
void |
setTypesHashMap(java.util.Map typesHashMap)
INTERNAL: |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SDOTypeHelperDelegate(HelperContext aContext)
Method Detail |
---|
public java.lang.Class getJavaWrapperTypeForSDOType(Type sdoType)
SDOTypeHelper
getJavaWrapperTypeForSDOType
in interface SDOTypeHelper
public 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();
public Type getOrCreateType(java.lang.String uri, java.lang.String typeName, java.lang.String xsdLocalName)
SDOTypeHelper
getOrCreateType
in interface SDOTypeHelper
public Type getType(java.lang.Class interfaceClass)
interfaceClass
- is the interface for the DataObject's Type -
type.getInstanceClass();
public Type getTypeForSimpleJavaType(java.lang.Class implClass)
getTypeForSimpleJavaType
in interface SDOTypeHelper
public Type getOrCreateType(Type next)
SDOTypeHelper
getOrCreateType
in interface SDOTypeHelper
public Type define(DataObject dataObject)
type
- the DataObject representing the Type.
java.lang.IllegalArgumentException
- if the Type could not be defined.public javax.xml.namespace.QName getXSDTypeFromSDOType(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 void reset()
SDOTypeHelper
reset
in interface SDOTypeHelper
public Property defineOpenContentProperty(java.lang.String uri, DataObject propertyDO)
uri
- the namespace URI of the open Property or null.
java.lang.IllegalArgumentException
- if the Property could not be defined.public Property getOpenContentProperty(java.lang.String uri, java.lang.String propertyName)
uri
- the namespace URI of the open Property.propertyName
- the name of the open Property.
public HelperContext getHelperContext()
getHelperContext
in interface SDOTypeHelper
public void setHelperContext(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
|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |