public class SDOTypeHelperDelegate extends java.lang.Object implements SDOTypeHelper
Purpose: Helper to provide access to declared SDO Types.
Responsibilities:
INSTANCE| Constructor and Description |
|---|
SDOTypeHelperDelegate(HelperContext aContext) |
| Modifier and Type | Method and Description |
|---|---|
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 project) |
Type |
define(DataObject dataObject)
Define the DataObject as a Type.
|
Type |
define(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.
|
Property |
defineOpenContentProperty(java.lang.String uri,
DataObject propertyDO)
Define the DataObject as a Property for setting open content.
|
java.util.List |
getAnonymousTypes() |
HelperContext |
getHelperContext()
INTERNAL:
Return the current helperContext associated with this delegate.
|
java.util.Map<java.lang.Class,SDOType> |
getImplClassesToSDOType() |
java.util.Map |
getInterfacesToSDOTypeHashMap() |
java.lang.Class |
getJavaWrapperTypeForSDOType(Type type)
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.
|
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 |
getTypeForImplClass(java.lang.Class implClass) |
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(Type aType)
A function to access the values stored in xsdToSDOType HashMap
|
void |
initWrapperTypes() |
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:
|
void |
setWrappersHashMap(java.util.Map aMap)
INTERNAL:
Set the map of Wrapper objects (SDOWrapperTypes that wrap a primitive document).
|
public SDOTypeHelperDelegate(HelperContext aContext)
public void initWrapperTypes()
public void addWrappersToProject(Project project)
addWrappersToProject in interface SDOTypeHelperpublic java.lang.Class getJavaWrapperTypeForSDOType(Type type)
SDOTypeHelpergetJavaWrapperTypeForSDOType in interface SDOTypeHelperpublic SDOType getType(java.lang.String uri, java.lang.String typeName)
getType in interface 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(java.lang.Class interfaceClass)
getType in interface TypeHelperinterfaceClass - is the interface for the DataObject's Type -
type.getInstanceClass();public SDOType getTypeForImplClass(java.lang.Class implClass)
getTypeForImplClass in interface SDOTypeHelperpublic SDOType getTypeForSimpleJavaType(java.lang.Class implClass)
getTypeForSimpleJavaType in interface SDOTypeHelperpublic Type define(DataObject dataObject)
TypeHelperTypeHelper.getType(java.lang.String, java.lang.String) methods.
If a type with the same name already exists, it is returned and no new definition takes place.
If the uri property of the type to be defined is set to "", then the
resulting type will have no uri, same as if the uri property was set to null.define in interface TypeHelperdataObject - the DataObject representing the Type.public Type define(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 TypeHelpertypes - a List of DataObjects representing the Types.java.lang.IllegalArgumentException - if the Types could not be defined.public javax.xml.namespace.QName getXSDTypeFromSDOType(Type aType)
getXSDTypeFromSDOType in interface SDOTypeHelperaType - a SDO Type Objectpublic SDOType getSDOTypeFromXSDType(javax.xml.namespace.QName aName)
getSDOTypeFromXSDType in interface SDOTypeHelperaName - public void setTypesHashMap(java.util.Map typesHashMap)
SDOTypeHelpersetTypesHashMap in interface SDOTypeHelperpublic java.util.Map getTypesHashMap()
SDOTypeHelpergetTypesHashMap in interface SDOTypeHelperpublic java.util.Map getWrappersHashMap()
getWrappersHashMap in interface SDOTypeHelperpublic void setWrappersHashMap(java.util.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 Property defineOpenContentProperty(java.lang.String uri, DataObject propertyDO)
defineOpenContentProperty in interface TypeHelperuri - 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)
getOpenContentProperty in interface TypeHelperuri - the namespace URI of the open Property.propertyName - the name of the open Property.public HelperContext getHelperContext()
getHelperContext in interface SDOTypeHelperpublic void setHelperContext(HelperContext helperContext)
setHelperContext in interface SDOTypeHelperpublic java.lang.String getPrefix(java.lang.String uri)
getPrefix in interface SDOTypeHelperpublic java.lang.String addNamespace(java.lang.String prefix,
java.lang.String uri)
addNamespace in interface SDOTypeHelperpublic NamespaceResolver getNamespaceResolver()
getNamespaceResolver in interface SDOTypeHelperpublic java.util.Map getOpenContentProperties()
getOpenContentProperties in interface SDOTypeHelperpublic java.util.Map getInterfacesToSDOTypeHashMap()
getInterfacesToSDOTypeHashMap in interface SDOTypeHelperpublic java.util.Map<java.lang.Class,SDOType> getImplClassesToSDOType()
getImplClassesToSDOType in interface SDOTypeHelperpublic java.util.List getAnonymousTypes()
getAnonymousTypes in interface SDOTypeHelper