public class SDOTypeHelperDelegate extends Object implements SDOTypeHelper
Purpose: Helper to provide access to declared SDO Types.
Responsibilities:
| Modifier and Type | Class and Description |
|---|---|
static class |
SDOTypeHelperDelegate.SDOWrapperTypeId |
| Constructor and Description |
|---|
SDOTypeHelperDelegate(commonj.sdo.helper.HelperContext aContext) |
| Modifier and Type | Method and Description |
|---|---|
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).
|
public SDOTypeHelperDelegate(commonj.sdo.helper.HelperContext aContext)
public void initWrapperTypes()
public void addWrappersToProject(Project project)
addWrappersToProject in interface SDOTypeHelperpublic Class getJavaWrapperTypeForSDOType(commonj.sdo.Type type)
SDOTypeHelpergetJavaWrapperTypeForSDOType in interface SDOTypeHelperpublic 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)
SDOTypeHelperaddType 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.TypeHelperpublic commonj.sdo.Type define(commonj.sdo.DataObject dataObject,
List types)
dataObject - 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 Objectpublic SDOType getSDOTypeFromXSDType(QName aName)
getSDOTypeFromXSDType in interface SDOTypeHelperaName - public void setTypesHashMap(Map typesHashMap)
SDOTypeHelpersetTypesHashMap in interface SDOTypeHelperpublic Map getTypesHashMap()
SDOTypeHelpergetTypesHashMap 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()
SDOTypeHelperreset in interface SDOTypeHelperpublic 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 SDOTypeHelperpublic 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 SDOTypeHelperCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.