|
|||||||||
| 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:
| Field Summary |
|---|
| Fields inherited from interface commonj.sdo.helper.TypeHelper |
|---|
INSTANCE |
| Constructor Summary | |
|---|---|
SDOTypeHelperDelegate(commonj.sdo.helper.HelperContext aContext)
|
|
| Method Summary | |
|---|---|
String |
addNamespace(String prefix,
String uri)
INTERNAL: Add the given namespace uri and prefix to the global namespace resolver. |
void |
addType(SDOType newType)
INTERNAL: |
void |
addWrappersToProject(Project project)
|
commonj.sdo.Type |
define(commonj.sdo.DataObject dataObject)
|
commonj.sdo.Type |
define(commonj.sdo.DataObject dataObject,
List types)
Define the DataObject as a Type. |
List |
define(List types)
Define the list of DataObjects as Types. |
commonj.sdo.Property |
defineOpenContentProperty(String uri,
commonj.sdo.DataObject propertyDO)
Define the DataObject as a Property for setting open content. |
List |
getAnonymousTypes()
|
commonj.sdo.helper.HelperContext |
getHelperContext()
INTERNAL: Return the current helperContext associated with this delegate. |
Map<Class,SDOType> |
getImplClassesToSDOType()
|
Map |
getInterfacesToSDOTypeHashMap()
|
Class |
getJavaWrapperTypeForSDOType(commonj.sdo.Type type)
INTERNAL: |
NamespaceResolver |
getNamespaceResolver()
INTERNAL: Return the NamespaceResolver |
Map |
getOpenContentProperties()
INTERNAL: Return the Map of Open Content Properties |
commonj.sdo.Property |
getOpenContentProperty(String uri,
String propertyName)
Get the open Property with the specified uri and name, or null if not found. |
String |
getPrefix(String uri)
INTERNAL: Return the prefix for the given uri, or generate a new one if necessary |
SDOType |
getSDOTypeFromXSDType(QName aName)
A function to access the values stored in sdoToXSDTypes HashMap |
SDOType |
getType(Class interfaceClass)
Return the Type for this interfaceClass or null if not found. |
SDOType |
getType(String uri,
String typeName)
Return the Type specified by typeName with the given uri, or null if not found. |
SDOType |
getTypeForImplClass(Class implClass)
|
SDOType |
getTypeForSimpleJavaType(Class implClass)
INTERNAL: Used to determine which SDO Type corresponds the given Java simple type |
Map |
getTypesHashMap()
INTERNAL: |
Map |
getWrappersHashMap()
INTERNAL: Return the map of Wrapper objects (SDOWrapperTypes that wrap a primitive document). |
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(Map typesHashMap)
INTERNAL: |
void |
setWrappersHashMap(Map aMap)
INTERNAL: Set the map of Wrapper objects (SDOWrapperTypes that wrap a primitive document). |
| Methods inherited from class java.lang.Object |
|---|
equals, 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 project)
addWrappersToProject in interface SDOTypeHelperpublic Class getJavaWrapperTypeForSDOType(commonj.sdo.Type type)
SDOTypeHelper
getJavaWrapperTypeForSDOType in interface SDOTypeHelper
public SDOType getType(String uri,
String typeName)
getType in interface commonj.sdo.helper.TypeHelperuri - The uri of the Type - type.getURI();typeName - The name of the Type - type.getName();
public void addType(SDOType newType)
SDOTypeHelper
addType in interface SDOTypeHelperpublic SDOType getType(Class interfaceClass)
getType in interface commonj.sdo.helper.TypeHelperinterfaceClass - is the interface for the DataObject's Type -
type.getInstanceClass();
public SDOType getTypeForImplClass(Class implClass)
getTypeForImplClass in interface SDOTypeHelperpublic SDOType getTypeForSimpleJavaType(Class implClass)
getTypeForSimpleJavaType in interface SDOTypeHelperpublic commonj.sdo.Type define(commonj.sdo.DataObject dataObject)
define in interface commonj.sdo.helper.TypeHelper
public commonj.sdo.Type define(commonj.sdo.DataObject dataObject,
List types)
type - the DataObject representing the Type.
IllegalArgumentException - if the Type could not be defined.public List define(List types)
define in interface commonj.sdo.helper.TypeHelpertypes - a List of DataObjects representing the Types.
IllegalArgumentException - if the Types could not be defined.public QName getXSDTypeFromSDOType(commonj.sdo.Type aType)
getXSDTypeFromSDOType in interface SDOTypeHelperaType - a SDO Type Object
public SDOType getSDOTypeFromXSDType(QName aName)
getSDOTypeFromXSDType in interface SDOTypeHelperaName -
public void setTypesHashMap(Map typesHashMap)
SDOTypeHelper
setTypesHashMap in interface SDOTypeHelperpublic Map getTypesHashMap()
SDOTypeHelper
getTypesHashMap in interface SDOTypeHelperpublic Map getWrappersHashMap()
getWrappersHashMap in interface SDOTypeHelperpublic void setWrappersHashMap(Map aMap)
setWrappersHashMap in interface SDOTypeHelperaMap - 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(String uri,
commonj.sdo.DataObject propertyDO)
defineOpenContentProperty in interface commonj.sdo.helper.TypeHelperuri - the namespace URI of the open Property or null.
IllegalArgumentException - if the Property could not be defined.
public commonj.sdo.Property getOpenContentProperty(String uri,
String propertyName)
getOpenContentProperty in interface commonj.sdo.helper.TypeHelperuri - the namespace URI of the open Property.propertyName - the name of the open Property.
public commonj.sdo.helper.HelperContext getHelperContext()
getHelperContext in interface SDOTypeHelperpublic void setHelperContext(commonj.sdo.helper.HelperContext helperContext)
setHelperContext in interface SDOTypeHelperpublic String getPrefix(String uri)
getPrefix in interface SDOTypeHelper
public String addNamespace(String prefix,
String uri)
addNamespace in interface SDOTypeHelperpublic NamespaceResolver getNamespaceResolver()
getNamespaceResolver in interface SDOTypeHelperpublic Map getOpenContentProperties()
getOpenContentProperties in interface SDOTypeHelperpublic Map getInterfacesToSDOTypeHashMap()
getInterfacesToSDOTypeHashMap in interface SDOTypeHelperpublic Map<Class,SDOType> getImplClassesToSDOType()
getImplClassesToSDOType in interface SDOTypeHelperpublic List getAnonymousTypes()
getAnonymousTypes in interface SDOTypeHelper
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||