|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.sdo.helper.delegates.AbstractHelperDelegator
org.eclipse.persistence.sdo.helper.delegates.SDOTypeHelperDelegator
public class SDOTypeHelperDelegator
Purpose: Helper to provide access to declared SDO Types.
Responsibilities:
Field Summary |
---|
Fields inherited from class org.eclipse.persistence.sdo.helper.delegates.AbstractHelperDelegator |
---|
aHelperContext |
Fields inherited from interface commonj.sdo.helper.TypeHelper |
---|
INSTANCE |
Constructor Summary | |
---|---|
SDOTypeHelperDelegator()
|
|
SDOTypeHelperDelegator(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)
|
Type |
define(DataObject dataObject)
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 property)
Define the DataObject as a Property for setting open content. |
java.util.List |
getAnonymousTypes()
|
java.util.Map<java.lang.Class,SDOType> |
getImplClassesToSDOType()
|
java.util.Map |
getInterfacesToSDOTypeHashMap()
|
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 content (global) 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)
INTERNAL: |
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. |
SDOType |
getTypeForImplClass(java.lang.Class implClass)
|
Type |
getTypeForSimpleJavaType(java.lang.Class implClass)
INTERNAL: |
SDOTypeHelperDelegate |
getTypeHelperDelegate()
|
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)
INTERNAL: |
void |
reset()
INTERNAL: |
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 org.eclipse.persistence.sdo.helper.delegates.AbstractHelperDelegator |
---|
getHelperContext, setHelperContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.persistence.sdo.helper.SDOTypeHelper |
---|
getHelperContext, setHelperContext |
Constructor Detail |
---|
public SDOTypeHelperDelegator()
public SDOTypeHelperDelegator(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)
TypeHelper
null
or ""
is passed as the value of the
uri
parameter, then a type with no URI will be returned,
if found.
getType
in interface TypeHelper
uri
- The uri of the Type - type.getURI();typeName
- The name of the Type - type.getName();
public Type getTypeForSimpleJavaType(java.lang.Class implClass)
SDOTypeHelper
getTypeForSimpleJavaType
in interface SDOTypeHelper
public void addType(SDOType newType)
SDOTypeHelper
addType
in interface SDOTypeHelper
public Type getType(java.lang.Class interfaceClass)
TypeHelper
getType
in interface TypeHelper
interfaceClass
- is the interface for the DataObject's Type -
type.getInstanceClass();
public SDOType getTypeForImplClass(java.lang.Class implClass)
getTypeForImplClass
in interface SDOTypeHelper
public Type define(DataObject dataObject)
TypeHelper
TypeHelper.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 TypeHelper
dataObject
- the DataObject representing the Type.
public java.util.List define(java.util.List types)
TypeHelper
TypeHelper.getType(java.lang.String, java.lang.String)
methods.
The output list will contain, for every item in the input list, either
the Type newly defined or a pre-existing Type in case a Type with the
given name already exists, followed by any other types defined as a
result of this call.
define
in interface TypeHelper
types
- a List of DataObjects representing the Types.
public javax.xml.namespace.QName getXSDTypeFromSDOType(Type aType)
SDOTypeHelper
getXSDTypeFromSDOType
in interface SDOTypeHelper
public SDOType getSDOTypeFromXSDType(javax.xml.namespace.QName aName)
SDOTypeHelper
getSDOTypeFromXSDType
in interface SDOTypeHelper
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 Property defineOpenContentProperty(java.lang.String uri, DataObject property)
TypeHelper
defineOpenContentProperty
in interface TypeHelper
uri
- the namespace URI of the open content Property or null.
public Property getOpenContentProperty(java.lang.String uri, java.lang.String propertyName)
TypeHelper
null
or ""
is passed as the value of the
uri
parameter, then a Property with no URI will be returned.
(for example, a property mapped from a global element in an XSD with no target namespace)
getOpenContentProperty
in interface TypeHelper
uri
- the namespace URI of the open content Property.propertyName
- the name of the open content Property.
public SDOTypeHelperDelegate getTypeHelperDelegate()
public java.lang.String addNamespace(java.lang.String prefix, java.lang.String uri)
addNamespace
in interface SDOTypeHelper
public java.lang.String getPrefix(java.lang.String uri)
getPrefix
in interface SDOTypeHelper
public NamespaceResolver getNamespaceResolver()
getNamespaceResolver
in interface SDOTypeHelper
public java.util.Map getOpenContentProperties()
getOpenContentProperties
in interface SDOTypeHelper
public void addWrappersToProject(Project toplinkProject)
addWrappersToProject
in interface SDOTypeHelper
public java.util.Map getInterfacesToSDOTypeHashMap()
getInterfacesToSDOTypeHashMap
in interface SDOTypeHelper
public java.util.Map<java.lang.Class,SDOType> getImplClassesToSDOType()
getImplClassesToSDOType
in interface SDOTypeHelper
public java.util.List getAnonymousTypes()
getAnonymousTypes
in interface SDOTypeHelper
|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |