Class SDOTypeHelperDelegator

  • All Implemented Interfaces:
    commonj.sdo.helper.TypeHelper, SDOTypeHelper

    public class SDOTypeHelperDelegator
    extends AbstractHelperDelegator
    implements SDOTypeHelper

    Purpose: Helper to provide access to declared SDO Types.

    Responsibilities:

    • Finds the appropriate SDOTypeHelperDelegate for the classLoader/application name and delegates work to that
    • Look up a Type given the uri and typeName or interfaceClass.
    • SDO Types are available through the getType("commonj.sdo", typeName) method.
    • Defines Types from DataObjects.
    • Constructor Detail

      • SDOTypeHelperDelegator

        public SDOTypeHelperDelegator()
      • SDOTypeHelperDelegator

        public SDOTypeHelperDelegator​(commonj.sdo.helper.HelperContext aContext)
    • Method Detail

      • getType

        public commonj.sdo.Type getType​(java.lang.String uri,
                                        java.lang.String typeName)
        Specified by:
        getType in interface commonj.sdo.helper.TypeHelper
      • getType

        public commonj.sdo.Type getType​(java.lang.Class interfaceClass)
        Specified by:
        getType in interface commonj.sdo.helper.TypeHelper
      • define

        public commonj.sdo.Type define​(commonj.sdo.DataObject dataObject)
        Specified by:
        define in interface commonj.sdo.helper.TypeHelper
      • define

        public java.util.List define​(java.util.List types)
        Specified by:
        define in interface commonj.sdo.helper.TypeHelper
      • getXSDTypeFromSDOType

        public javax.xml.namespace.QName getXSDTypeFromSDOType​(commonj.sdo.Type aType)
        Description copied from interface: SDOTypeHelper
        INTERNAL:
        Specified by:
        getXSDTypeFromSDOType in interface SDOTypeHelper
        Returns:
      • getWrappersHashMap

        public java.util.Map getWrappersHashMap()
        INTERNAL: Return the map of Wrapper objects (SDOWrapperTypes that wrap a primitive document).
        Specified by:
        getWrappersHashMap in interface SDOTypeHelper
        Returns:
        a HashMap of SDOWrapperTypes, keyed on the XSD type that it wraps.
      • setWrappersHashMap

        public void setWrappersHashMap​(java.util.Map aMap)
        INTERNAL: Set the map of Wrapper objects (SDOWrapperTypes that wrap a primitive document).
        Specified by:
        setWrappersHashMap in interface SDOTypeHelper
        Parameters:
        aMap - a HashMap of SDOWrapperTypes, keyed on the XSD type that it wraps.
      • defineOpenContentProperty

        public commonj.sdo.Property defineOpenContentProperty​(java.lang.String uri,
                                                              commonj.sdo.DataObject property)
        Specified by:
        defineOpenContentProperty in interface commonj.sdo.helper.TypeHelper
      • getOpenContentProperty

        public commonj.sdo.Property getOpenContentProperty​(java.lang.String uri,
                                                           java.lang.String propertyName)
        Specified by:
        getOpenContentProperty in interface commonj.sdo.helper.TypeHelper
      • addNamespace

        public 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.
        Specified by:
        addNamespace in interface SDOTypeHelper
      • getPrefix

        public java.lang.String getPrefix​(java.lang.String uri)
        INTERNAL: Return the prefix for the given uri, or generate a new one if necessary
        Specified by:
        getPrefix in interface SDOTypeHelper
      • getOpenContentProperties

        public java.util.Map getOpenContentProperties()
        INTERNAL: Return the Map of Open Content Properties
        Specified by:
        getOpenContentProperties in interface SDOTypeHelper