|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(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 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). |
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 void initWrapperTypes()
public void addWrappersToProject(Project project)
addWrappersToProject
in interface SDOTypeHelper
public java.lang.Class getJavaWrapperTypeForSDOType(Type type)
SDOTypeHelper
getJavaWrapperTypeForSDOType
in interface SDOTypeHelper
public SDOType getType(java.lang.String uri, java.lang.String typeName)
getType
in interface TypeHelper
uri
- The uri of the Type - type.getURI();typeName
- The name of the Type - type.getName();
public void addType(SDOType newType)
SDOTypeHelper
addType
in interface SDOTypeHelper
public SDOType getType(java.lang.Class interfaceClass)
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 SDOType getTypeForSimpleJavaType(java.lang.Class implClass)
getTypeForSimpleJavaType
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 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 TypeHelper
types
- 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 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 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 propertyDO)
defineOpenContentProperty
in interface TypeHelper
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)
getOpenContentProperty
in interface TypeHelper
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
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.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |